pub enum ParseSignedError {
Ruint(ParseError),
IntegerOverflow,
}
Expand description
The error type that is returned when parsing a signed integer.
Variants§
Ruint(ParseError)
Error that occurs when an invalid digit is encountered while parsing.
IntegerOverflow
Error that occurs when the number is too large or too small (negative) and does not fit in the target signed integer.
Trait Implementations§
Source§impl Clone for ParseSignedError
impl Clone for ParseSignedError
Source§fn clone(&self) -> ParseSignedError
fn clone(&self) -> ParseSignedError
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 ParseSignedError
impl Debug for ParseSignedError
Source§impl Display for ParseSignedError
impl Display for ParseSignedError
Source§impl Error for ParseSignedError
Available on crate feature std
only.
impl Error for ParseSignedError
Available on crate feature
std
only.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<ParseError> for ParseSignedError
impl From<ParseError> for ParseSignedError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseSignedError> for UnitsError
impl From<ParseSignedError> for UnitsError
Source§fn from(value: ParseSignedError) -> Self
fn from(value: ParseSignedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParseSignedError
impl PartialEq for ParseSignedError
impl Copy for ParseSignedError
impl Eq for ParseSignedError
impl StructuralPartialEq for ParseSignedError
Auto Trait Implementations§
impl Freeze for ParseSignedError
impl RefUnwindSafe for ParseSignedError
impl Send for ParseSignedError
impl Sync for ParseSignedError
impl Unpin for ParseSignedError
impl UnwindSafe for ParseSignedError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.