Struct fvm_ipld_encoding::strict_bytes::ByteBuf
source · pub struct ByteBuf(pub Vec<u8>);
Expand description
Wrapper for serializing and deserializing dynamic sized Bytes.
Tuple Fields§
§0: Vec<u8>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ByteBuf
impl<'de> Deserialize<'de> for ByteBuf
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ByteBuf
impl PartialEq for ByteBuf
impl Eq for ByteBuf
impl StructuralPartialEq for ByteBuf
Auto Trait Implementations§
impl Freeze for ByteBuf
impl RefUnwindSafe for ByteBuf
impl Send for ByteBuf
impl Sync for ByteBuf
impl Unpin for ByteBuf
impl UnwindSafe for ByteBuf
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)