Enum ion_rs::binary::uint::UIntBeBytes
source · pub enum UIntBeBytes {
Stack([u8; 8]),
Heap(Vec<u8>),
}
Expand description
A buffer for storing a UInt’s Big Endian bytes. UInts that can fit in a u64
will use the
Stack
storage variant, meaning that no heap allocations are required in the common case.
Variants§
Trait Implementations§
source§impl Clone for UIntBeBytes
impl Clone for UIntBeBytes
source§fn clone(&self) -> UIntBeBytes
fn clone(&self) -> UIntBeBytes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UIntBeBytes
impl Debug for UIntBeBytes
source§impl PartialEq<UIntBeBytes> for UIntBeBytes
impl PartialEq<UIntBeBytes> for UIntBeBytes
source§fn eq(&self, other: &UIntBeBytes) -> bool
fn eq(&self, other: &UIntBeBytes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UIntBeBytes
impl StructuralEq for UIntBeBytes
impl StructuralPartialEq for UIntBeBytes
Auto Trait Implementations§
impl RefUnwindSafe for UIntBeBytes
impl Send for UIntBeBytes
impl Sync for UIntBeBytes
impl Unpin for UIntBeBytes
impl UnwindSafe for UIntBeBytes
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