pub struct Integer(/* private fields */);Expand description
Helper for integer construction, including big integers.
Represents unsigned, negative, or big integer values (tags 2/3 for
values beyond the u64/i64 range). Normally created implicitly
through Value::integer or the From conversions on Value.
Rarely used directly.
use cbor_core::{Value, Integer};
let big = Value::integer(u128::MAX);
assert!(big.data_type().is_integer());Trait Implementations§
Source§impl Ord for Integer
impl Ord for Integer
Source§impl PartialOrd for Integer
impl PartialOrd for Integer
impl Eq for Integer
impl StructuralPartialEq for Integer
Auto Trait Implementations§
impl Freeze for Integer
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnsafeUnpin for Integer
impl UnwindSafe for Integer
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