pub enum Warning {
ContainsEscapeCodes,
ExceedsMaximumPossibleValue,
InvalidType,
LessThanMinimumPossibleValue,
Underflow,
}Expand description
The warnings that can happen when parsing or linting a numerical value.
Variants§
ContainsEscapeCodes
Numerical strings do not need to have escape codes.
ExceedsMaximumPossibleValue
The value provided exceeds Decimal::MAX.
InvalidType
The JSON value given is not a number.
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§
Source§impl Ord for Warning
impl Ord for Warning
Source§impl PartialOrd for Warning
impl PartialOrd for Warning
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
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