pub struct Sentinel<MByteD: Distribution<Option<u8>> + Clone> {
pub mbd: MByteD,
}Expand description
A distribution that generates a vector of bytes by sampling from mbd until None is returned.
Fields§
§mbd: MByteDTrait Implementations§
Source§impl<MByteD: Distribution<Option<u8>> + Clone> Distribution<Vec<u8>> for Sentinel<MByteD>
impl<MByteD: Distribution<Option<u8>> + Clone> Distribution<Vec<u8>> for Sentinel<MByteD>
Auto Trait Implementations§
impl<MByteD> Freeze for Sentinel<MByteD>where
MByteD: Freeze,
impl<MByteD> RefUnwindSafe for Sentinel<MByteD>where
MByteD: RefUnwindSafe,
impl<MByteD> Send for Sentinel<MByteD>where
MByteD: Send,
impl<MByteD> Sync for Sentinel<MByteD>where
MByteD: Sync,
impl<MByteD> Unpin for Sentinel<MByteD>where
MByteD: Unpin,
impl<MByteD> UnwindSafe for Sentinel<MByteD>where
MByteD: 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