pub struct Number(/* private fields */);
Expand description
This represents integer number
But since there is no definition on limit of number in spec
(only in implemetation), we do a trick similar to the one
in serde_json
: encapsulate value in new-type, allowing type
to be extended later.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Number
Auto Trait Implementations§
impl Freeze for Number
impl RefUnwindSafe for Number
impl Send for Number
impl Sync for Number
impl Unpin for Number
impl UnwindSafe for Number
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