pub struct Bf16Wrapper(pub bf16);Expand description
Wrapper type for bf16 to allow implementing foreign traits
Tuple Fields§
§0: bf16Trait Implementations§
Source§impl Clone for Bf16Wrapper
impl Clone for Bf16Wrapper
Source§fn clone(&self) -> Bf16Wrapper
fn clone(&self) -> Bf16Wrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bf16Wrapper
impl Debug for Bf16Wrapper
Source§impl Display for Bf16Wrapper
impl Display for Bf16Wrapper
Source§impl Distribution<Bf16Wrapper> for Standard
impl Distribution<Bf16Wrapper> for Standard
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Bf16Wrapper
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Bf16Wrapper
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl Distribution<Bf16Wrapper> for StandardNormal
impl Distribution<Bf16Wrapper> for StandardNormal
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Bf16Wrapper
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Bf16Wrapper
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreSource§impl From<Bf16Wrapper> for bf16
impl From<Bf16Wrapper> for bf16
Source§fn from(wrapper: Bf16Wrapper) -> Self
fn from(wrapper: Bf16Wrapper) -> Self
Converts to this type from the input type.
Source§impl From<bf16> for Bf16Wrapper
impl From<bf16> for Bf16Wrapper
impl Copy for Bf16Wrapper
Auto Trait Implementations§
impl Freeze for Bf16Wrapper
impl RefUnwindSafe for Bf16Wrapper
impl Send for Bf16Wrapper
impl Sync for Bf16Wrapper
impl Unpin for Bf16Wrapper
impl UnwindSafe for Bf16Wrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more