pub struct IntegerOutOfRange { /* private fields */ }Expand description
An integer too large for TOML’s signed 64-bit integers.
Reachable from an ordinary JSON input — a snowflake ID or a hash above
i64::MAX is exactly what Number::U64 exists to carry losslessly — so
unlike BadDatetime this is a failure a user meets rather than one only a
caller can build. It used to be rounded through f64 on the way out, which
discarded the very digits the variant preserves.
Carries paths and the offending value, and like its siblings stops short of a
trailing newline so an interface can append a line of its own. There is one
worth appending here: -f json emits the integer exactly.
Trait Implementations§
Source§impl Debug for IntegerOutOfRange
impl Debug for IntegerOutOfRange
Source§impl Display for IntegerOutOfRange
impl Display for IntegerOutOfRange
Source§impl Error for IntegerOutOfRange
impl Error for IntegerOutOfRange
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()
Auto Trait Implementations§
impl Freeze for IntegerOutOfRange
impl RefUnwindSafe for IntegerOutOfRange
impl Send for IntegerOutOfRange
impl Sync for IntegerOutOfRange
impl Unpin for IntegerOutOfRange
impl UnsafeUnpin for IntegerOutOfRange
impl UnwindSafe for IntegerOutOfRange
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