pub struct FakeRng(pub u8);Expand description
Deterministic test RNG: fills every byte of buf with self.0.
Useful for asserting exact byte sequences in unit tests without needing a real entropy source.
Tuple Fields§
§0: u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeRng
impl RefUnwindSafe for FakeRng
impl Send for FakeRng
impl Sync for FakeRng
impl Unpin for FakeRng
impl UnsafeUnpin for FakeRng
impl UnwindSafe for FakeRng
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