Struct cbored::tagged::NegativeBignum
source · [−]pub struct NegativeBignum(_, _);
Expand description
CBOR Negative Bignum (Tag 3)
Implementations
sourceimpl NegativeBignum
impl NegativeBignum
pub fn read<'a>(reader: &mut Reader<'a>) -> Result<Self, ReaderError>
sourcepub fn to_be_bytes(&self) -> Vec<u8>
pub fn to_be_bytes(&self) -> Vec<u8>
Write the bignum as a big endian representation for -1 - n
Trait Implementations
sourceimpl Clone for NegativeBignum
impl Clone for NegativeBignum
sourcefn clone(&self) -> NegativeBignum
fn clone(&self) -> NegativeBignum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NegativeBignum
impl Debug for NegativeBignum
sourceimpl Decode for NegativeBignum
impl Decode for NegativeBignum
fn decode<'a>(reader: &mut Reader<'a>) -> Result<Self, DecodeError>
Auto Trait Implementations
impl RefUnwindSafe for NegativeBignum
impl Send for NegativeBignum
impl Sync for NegativeBignum
impl Unpin for NegativeBignum
impl UnwindSafe for NegativeBignum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more