Enum conv::errors::RangeErrorKind
[−]
pub enum RangeErrorKind { NegOverflow, PosOverflow, }
Indicates that a conversion failed due to a range error.
This is a variant of RangeError
that does not retain the input value which caused the error. It exists to help unify some utility methods and should not generally be used directly, unless you are targeting the Unwrap*
traits.
Variants
NegOverflow
Input was too negative for the target type.
PosOverflow
Input was too positive for the target type.
Trait Implementations
impl Debug for RangeErrorKind
impl PartialOrd for RangeErrorKind
fn partial_cmp(&self, __arg_0: &RangeErrorKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for RangeErrorKind
fn cmp(&self, __arg_0: &RangeErrorKind) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for RangeErrorKind
fn eq(&self, __arg_0: &RangeErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for RangeErrorKind
impl Clone for RangeErrorKind
fn clone(&self) -> RangeErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for RangeErrorKind
impl From<NoError> for RangeErrorKind
[src]
impl Display for RangeErrorKind
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Error for RangeErrorKind
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl<T> From<NegOverflow<T>> for RangeErrorKind
[src]
fn from(_: NegOverflow<T>) -> Self
Performs the conversion.
impl<T> From<PosOverflow<T>> for RangeErrorKind
[src]
fn from(_: PosOverflow<T>) -> Self
Performs the conversion.
impl<T> From<RangeError<T>> for RangeErrorKind
[src]
fn from(e: RangeError<T>) -> Self
Performs the conversion.