Struct spinoso_securerandom::DomainError
source · [−]pub struct DomainError { /* private fields */ }
Expand description
Error that indicates the given maximum value is not finite and cannot be used to bound a domain for generating random numbers.
This error is returned by random_number
.
Implementations
sourceimpl DomainError
impl DomainError
Trait Implementations
sourceimpl Clone for DomainError
impl Clone for DomainError
sourcefn clone(&self) -> DomainError
fn clone(&self) -> DomainError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DomainError
impl Debug for DomainError
sourceimpl Default for DomainError
impl Default for DomainError
sourcefn default() -> DomainError
fn default() -> DomainError
Returns the “default value” for a type. Read more
sourceimpl Display for DomainError
impl Display for DomainError
sourceimpl Error for DomainError
impl Error for DomainError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Hash for DomainError
impl Hash for DomainError
sourceimpl Ord for DomainError
impl Ord for DomainError
sourceimpl PartialEq<DomainError> for DomainError
impl PartialEq<DomainError> for DomainError
sourcefn eq(&self, other: &DomainError) -> bool
fn eq(&self, other: &DomainError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DomainError) -> bool
fn ne(&self, other: &DomainError) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DomainError> for DomainError
impl PartialOrd<DomainError> for DomainError
sourcefn partial_cmp(&self, other: &DomainError) -> Option<Ordering>
fn partial_cmp(&self, other: &DomainError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for DomainError
impl Eq for DomainError
impl StructuralEq for DomainError
impl StructuralPartialEq for DomainError
Auto Trait Implementations
impl RefUnwindSafe for DomainError
impl Send for DomainError
impl Sync for DomainError
impl Unpin for DomainError
impl UnwindSafe for DomainError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more