Struct ic_stable_structures::storable::Blob
source · pub struct Blob<const N: usize> { /* private fields */ }Expand description
Variable-size, but limited in capacity byte array.
Implementations§
Trait Implementations§
source§impl<const N: usize> Ord for Blob<N>
impl<const N: usize> Ord for Blob<N>
source§impl<const N: usize> PartialEq for Blob<N>
impl<const N: usize> PartialEq for Blob<N>
source§impl<const N: usize> PartialOrd for Blob<N>
impl<const N: usize> PartialOrd for Blob<N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<const N: usize> Storable for Blob<N>
impl<const N: usize> Storable for Blob<N>
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl<const N: usize> Copy for Blob<N>
impl<const N: usize> Eq for Blob<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for Blob<N>
impl<const N: usize> Send for Blob<N>
impl<const N: usize> Sync for Blob<N>
impl<const N: usize> Unpin for Blob<N>
impl<const N: usize> UnwindSafe for Blob<N>
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