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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for UIntBeBytes
impl PartialEq for UIntBeBytes
impl Eq for UIntBeBytes
impl StructuralPartialEq for UIntBeBytes
Auto Trait Implementations§
impl Freeze for UIntBeBytes
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