pub enum NumberResult {
Integer(i64),
IntegerOverflow,
Float(f64),
FloatDisabled,
FloatSkipped,
FloatTruncated(i64),
}Expand description
Represents the parsed result of a JSON number.
Depending on crate configuration for float and integer support,
variants like FloatDisabled, FloatSkipped and FloatTruncated are
conditionally available.
Variants§
Integer(i64)
Integer that fits in the configured integer type
IntegerOverflow
Integer too large for configured type (use raw string for exact representation)
Float(f64)
Float value (only available with float feature)
FloatDisabled
Float parsing disabled - behavior depends on configuration
FloatSkipped
Float encountered but skipped due to float-skip configuration
FloatTruncated(i64)
Float truncated to integer due to float-truncate configuration
Trait Implementations§
Source§impl Debug for NumberResult
impl Debug for NumberResult
Source§impl PartialEq for NumberResult
impl PartialEq for NumberResult
impl StructuralPartialEq for NumberResult
Auto Trait Implementations§
impl Freeze for NumberResult
impl RefUnwindSafe for NumberResult
impl Send for NumberResult
impl Sync for NumberResult
impl Unpin for NumberResult
impl UnwindSafe for NumberResult
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