[−][src]Enum rand_mt::RecoverRngError
Error returned from fallible Mersenne Twister recovery constructors.
When the std
feature is enabled, this type implements std::error::Error
.
Variants (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.
TooFewSamples(usize)
Attempted to recover an RNG with too many samples.
Recover constructors require an exact number of samples to ensure the recovered RNG matches the state of the RNG that supplied all of the samples.
TooManySamples(usize)
Attempted to recover an RNG with too few samples.
Too few samples leaves the internal state buffer partially uninitialized.
Recover constructors require an exact number of samples to ensure the recovered RNG matches the state of the RNG that supplied all of the samples.
Trait Implementations
impl Clone for RecoverRngError
[src]
pub fn clone(&self) -> RecoverRngError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RecoverRngError
[src]
impl Debug for RecoverRngError
[src]
impl Display for RecoverRngError
[src]
impl Eq for RecoverRngError
[src]
impl Error for RecoverRngError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Hash for RecoverRngError
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<RecoverRngError> for RecoverRngError
[src]
pub fn eq(&self, other: &RecoverRngError) -> bool
[src]
pub fn ne(&self, other: &RecoverRngError) -> bool
[src]
impl StructuralEq for RecoverRngError
[src]
impl StructuralPartialEq for RecoverRngError
[src]
Auto Trait Implementations
impl RefUnwindSafe for RecoverRngError
[src]
impl Send for RecoverRngError
[src]
impl Sync for RecoverRngError
[src]
impl Unpin for RecoverRngError
[src]
impl UnwindSafe for RecoverRngError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,