pub struct MissingDigitsError { /* private fields */ }
Expand description
Error returned when digits were expected in the input but there were none.
In particular, this is currently returned when the string is empty or only contains the minus sign.
Trait Implementations§
source§impl Clone for MissingDigitsError
impl Clone for MissingDigitsError
source§fn clone(&self) -> MissingDigitsError
fn clone(&self) -> MissingDigitsError
Returns a copy of the value. Read more
1.6.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 MissingDigitsError
impl Debug for MissingDigitsError
source§impl Display for MissingDigitsError
impl Display for MissingDigitsError
source§impl Error for MissingDigitsError
Available on crate feature std
only.
impl Error for MissingDigitsError
Available on crate feature
std
only.1.81.0 · 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.81.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<MissingDigitsError> for ParseAmountError
impl From<MissingDigitsError> for ParseAmountError
source§fn from(value: MissingDigitsError) -> Self
fn from(value: MissingDigitsError) -> Self
Converts to this type from the input type.
source§impl From<MissingDigitsError> for ParseError
impl From<MissingDigitsError> for ParseError
source§fn from(e: MissingDigitsError) -> Self
fn from(e: MissingDigitsError) -> Self
Converts to this type from the input type.
source§impl PartialEq for MissingDigitsError
impl PartialEq for MissingDigitsError
impl Eq for MissingDigitsError
impl StructuralPartialEq for MissingDigitsError
Auto Trait Implementations§
impl Freeze for MissingDigitsError
impl RefUnwindSafe for MissingDigitsError
impl Send for MissingDigitsError
impl Sync for MissingDigitsError
impl Unpin for MissingDigitsError
impl UnwindSafe for MissingDigitsError
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
)