struct XorShift32(u32);Expand description
Tiny deterministic PRNG. Replaces rand() from MilkDrop’s reference
without taking a workspace-wide dependency for a few hundred KB of init
data. Mixed with the texture name’s first byte so the three 2D and two
3D textures don’t share a stream.
Tuple Fields§
§0: u32Implementations§
Auto Trait Implementations§
impl Freeze for XorShift32
impl RefUnwindSafe for XorShift32
impl Send for XorShift32
impl Sync for XorShift32
impl Unpin for XorShift32
impl UnwindSafe for XorShift32
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more