pub enum Warning {
ContainsEscapeCodes,
Decimal(String),
Decode(Warning),
ExceedsMaximumPossibleValue,
LessThanMinimumPossibleValue,
Underflow,
}Expand description
The warnings that can happen when parsing or linting a numerical value.
Variants§
ContainsEscapeCodes
Numerical strings don’t need to have escape-codes.
Decimal(String)
Unable to convert string to a Decimal.
Decode(Warning)
The field at the path could not be decoded.
ExceedsMaximumPossibleValue
The value provided exceeds Decimal::MAX.
LessThanMinimumPossibleValue
The value provided is less than Decimal::MIN.
Underflow
An underflow is when there are more fractional digits than can be represented within Decimal.
Trait Implementations§
impl Eq for Warning
Source§impl Ord for Warning
impl Ord for Warning
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Forget for Warning
impl Freeze for Warning
impl Move for Warning
impl RefUnwindSafe for Warning
impl Send for Warningwhere
RawVecInner: Send,
impl Sync for Warningwhere
RawVecInner: Sync,
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warningwhere
RawVecInner: UnwindSafe,
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