Enum compose_spec::ParseNumberError
source · pub enum ParseNumberError {
Int(ParseIntError),
Float(ParseFloatError),
}Expand description
Error returned when parsing a Number from a string.
Variants§
Trait Implementations§
source§impl Clone for ParseNumberError
impl Clone for ParseNumberError
source§fn clone(&self) -> ParseNumberError
fn clone(&self) -> ParseNumberError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ParseNumberError
impl Debug for ParseNumberError
source§impl Display for ParseNumberError
impl Display for ParseNumberError
source§impl Error for ParseNumberError
impl Error for ParseNumberError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 ParseNumberError
impl From<ParseFloatError> for ParseNumberError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ParseNumberError
impl From<ParseIntError> for ParseNumberError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<ParseNumberError> for TryFromValueError
impl From<ParseNumberError> for TryFromValueError
source§fn from(source: ParseNumberError) -> Self
fn from(source: ParseNumberError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseNumberError
impl PartialEq for ParseNumberError
source§fn eq(&self, other: &ParseNumberError) -> bool
fn eq(&self, other: &ParseNumberError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ParseNumberError
impl StructuralPartialEq for ParseNumberError
Auto Trait Implementations§
impl Freeze for ParseNumberError
impl RefUnwindSafe for ParseNumberError
impl Send for ParseNumberError
impl Sync for ParseNumberError
impl Unpin for ParseNumberError
impl UnwindSafe for ParseNumberError
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.