#[non_exhaustive]pub enum SeedError {
InvalidSize {
expected: usize,
got: usize,
},
AllZeros,
ValidationFailed(&'static str),
}Expand description
Seed-related errors
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSize
Invalid seed size
AllZeros
Seed contains all zeros (weak seed)
ValidationFailed(&'static str)
Seed validation failed
Trait Implementations§
impl Eq for SeedError
impl StructuralPartialEq for SeedError
Auto Trait Implementations§
impl Freeze for SeedError
impl RefUnwindSafe for SeedError
impl Send for SeedError
impl Sync for SeedError
impl Unpin for SeedError
impl UnwindSafe for SeedError
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