cap_rand::distributions::uniform

Trait 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,