pub enum InvalidSampleRandError {
InvalidFloat(ParseFloatError),
OutOfRange,
}
Expand description
An error that indicates failure to construct a SampleRand.
Variants§
InvalidFloat(ParseFloatError)
Indicates that the given value cannot be converted to a f64 succesfully.
OutOfRange
Indicates that the given float is outside of the valid range for a sample rand, that is the half-open interval [0.0, 1.0).
Trait Implementations§
Source§impl Debug for InvalidSampleRandError
impl Debug for InvalidSampleRandError
Source§impl Display for InvalidSampleRandError
impl Display for InvalidSampleRandError
Source§impl Error for InvalidSampleRandError
impl Error for InvalidSampleRandError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ParseFloatError> for InvalidSampleRandError
impl From<ParseFloatError> for InvalidSampleRandError
Source§fn from(source: ParseFloatError) -> InvalidSampleRandError
fn from(source: ParseFloatError) -> InvalidSampleRandError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidSampleRandError
impl RefUnwindSafe for InvalidSampleRandError
impl Send for InvalidSampleRandError
impl Sync for InvalidSampleRandError
impl Unpin for InvalidSampleRandError
impl UnwindSafe for InvalidSampleRandError
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