pub struct ParseDecimalError { /* private fields */ }Expand description
ParseDecimalError
User-facing parse failure for decimal text input.
This keeps text parsing errors explicit without pulling transport or arithmetic semantics into the error surface.
Implementations§
Source§impl ParseDecimalError
impl ParseDecimalError
Sourcepub const fn reason(&self) -> ParseDecimalErrorReason
pub const fn reason(&self) -> ParseDecimalErrorReason
Return the compact reason code for this parse failure.
Trait Implementations§
Source§impl Clone for ParseDecimalError
impl Clone for ParseDecimalError
Source§fn clone(&self) -> ParseDecimalError
fn clone(&self) -> ParseDecimalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParseDecimalError
Source§impl Debug for ParseDecimalError
impl Debug for ParseDecimalError
Source§impl Display for ParseDecimalError
impl Display for ParseDecimalError
impl Eq for ParseDecimalError
Source§impl Error for ParseDecimalError
impl Error for ParseDecimalError
1.30.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.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 PartialEq for ParseDecimalError
impl PartialEq for ParseDecimalError
impl StructuralPartialEq for ParseDecimalError
Auto Trait Implementations§
impl Freeze for ParseDecimalError
impl RefUnwindSafe for ParseDecimalError
impl Send for ParseDecimalError
impl Sync for ParseDecimalError
impl Unpin for ParseDecimalError
impl UnsafeUnpin for ParseDecimalError
impl UnwindSafe for ParseDecimalError
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