pub struct Weighted32<E> { /* private fields */ }Expand description
Applies a witnessed [0, 1] weight to an f32 evaluator.
Implementations§
Source§impl<E> Weighted32<E>
impl<E> Weighted32<E>
Sourcepub fn into_inner(self) -> E
pub fn into_inner(self) -> E
Consumes the wrapper and returns the evaluator.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Weighted32<E>where
E: Freeze,
impl<E> RefUnwindSafe for Weighted32<E>where
E: RefUnwindSafe,
impl<E> Send for Weighted32<E>where
E: Send,
impl<E> Sync for Weighted32<E>where
E: Sync,
impl<E> Unpin for Weighted32<E>where
E: Unpin,
impl<E> UnsafeUnpin for Weighted32<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Weighted32<E>where
E: UnwindSafe,
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