pub enum RandomSeed {
Str(String),
Num(f64),
}Expand description
A seed value for random.
Can be constructed from strings (&str, String) or numbers (f64, f32, i32, i64, u32, u64, usize).
Variants§
Trait Implementations§
Source§impl Clone for RandomSeed
impl Clone for RandomSeed
Source§impl Debug for RandomSeed
impl Debug for RandomSeed
Source§impl Display for RandomSeed
impl Display for RandomSeed
Source§impl From<&String> for RandomSeed
impl From<&String> for RandomSeed
Source§impl From<&str> for RandomSeed
impl From<&str> for RandomSeed
Source§impl From<String> for RandomSeed
impl From<String> for RandomSeed
Source§impl From<f32> for RandomSeed
impl From<f32> for RandomSeed
Source§impl From<f64> for RandomSeed
impl From<f64> for RandomSeed
Source§impl From<i32> for RandomSeed
impl From<i32> for RandomSeed
Source§impl From<i64> for RandomSeed
impl From<i64> for RandomSeed
Source§impl From<u32> for RandomSeed
impl From<u32> for RandomSeed
Source§impl From<u64> for RandomSeed
impl From<u64> for RandomSeed
Source§impl From<usize> for RandomSeed
impl From<usize> for RandomSeed
Source§impl PartialEq for RandomSeed
impl PartialEq for RandomSeed
impl StructuralPartialEq for RandomSeed
Auto Trait Implementations§
impl Freeze for RandomSeed
impl RefUnwindSafe for RandomSeed
impl Send for RandomSeed
impl Sync for RandomSeed
impl Unpin for RandomSeed
impl UnsafeUnpin for RandomSeed
impl UnwindSafe for RandomSeed
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