Struct libipld_pb::PbNode
source · [−]Expand description
A protobuf ipld node.
Fields
links: Vec<PbLink>
List of protobuf ipld links.
data: Box<[u8]>
Binary data blob.
Implementations
sourceimpl PbNode
impl PbNode
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Deserializes a PbNode
from bytes.
sourcepub fn into_bytes(self) -> Box<[u8]>
pub fn into_bytes(self) -> Box<[u8]>
Serializes a PbNode
to bytes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PbNode
impl Send for PbNode
impl Sync for PbNode
impl Unpin for PbNode
impl UnwindSafe for PbNode
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