Trait valence::rand::distributions::uniform::SampleBorrow

source ·
pub trait SampleBorrow<Borrowed> {
    // Required method
    fn borrow(&self) -> &Borrowed;
}
Expand description

Helper trait similar to Borrow but implemented only for SampleUniform and references to SampleUniform in order to resolve ambiguity issues.

Required Methods§

source

fn borrow(&self) -> &Borrowed

Immutably borrows from an owned value. See Borrow::borrow

Implementations on Foreign Types§

source§

impl<'a, Borrowed> SampleBorrow<Borrowed> for &'a Borrowed
where Borrowed: SampleUniform,

Implementors§

source§

impl<Borrowed> SampleBorrow<Borrowed> for Borrowed
where Borrowed: SampleUniform,