pub struct Boundary<T>(/* private fields */);Expand description
A boundary-value sampler for T: each fixed-width max ±1 and the half-range
midpoint ±1. Boundary::<T>::new().sample(rng) returns one.
Implementations§
Trait Implementations§
impl<T: Copy> Copy for Boundary<T>
Source§impl Distribution<i64> for Boundary<i64>
impl Distribution<i64> for Boundary<i64>
Source§impl Distribution<u8> for Boundary<u8>
impl Distribution<u8> for Boundary<u8>
Source§impl Distribution<u64> for Boundary<u64>
impl Distribution<u64> for Boundary<u64>
Auto Trait Implementations§
impl<T> Freeze for Boundary<T>
impl<T> RefUnwindSafe for Boundary<T>where
T: RefUnwindSafe,
impl<T> Send for Boundary<T>where
T: Send,
impl<T> Sync for Boundary<T>where
T: Sync,
impl<T> Unpin for Boundary<T>where
T: Unpin,
impl<T> UnsafeUnpin for Boundary<T>
impl<T> UnwindSafe for Boundary<T>where
T: 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