pub enum Seed {
Os,
Int(u128),
State(Arc<[u32; 625]>),
}Expand description
Seed of the random walk, mirroring DetectorFactory.seed.
Variants§
Os
seed = None: a fresh random seed for every detection.
Int(u128)
An integer seed, as random.Random(n) (the sign is ignored, as in CPython).
State(Arc<[u32; 625]>)
A Mersenne Twister state as returned by random.Random(seed).getstate()[1]
(624 words followed by the position).
Implementations§
Trait Implementations§
impl Eq for Seed
impl StructuralPartialEq for Seed
Auto Trait Implementations§
impl Freeze for Seed
impl RefUnwindSafe for Seed
impl Send for Seed
impl Sync for Seed
impl Unpin for Seed
impl UnsafeUnpin for Seed
impl UnwindSafe for Seed
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.