Trait sublock::prooflock::ProofBorrow [] [src]

pub trait ProofBorrow<P, T> {
    fn borrow<'a>(&'a self, proof: &P) -> Ref<'a, T>;
}

A trait specifying that a structure supports immutable borrowing if some proof is provided.

Required Methods

fn borrow<'a>(&'a self, proof: &P) -> Ref<'a, T>

Implementors