Struct fvm_ipld_blockstore::Block
source · pub struct Block<D>{
pub codec: u64,
pub data: D,
}
Expand description
Block represents a typed (i.e., with codec) IPLD block.
Fields§
§codec: u64
§data: D
Implementations§
Trait Implementations§
source§impl<D1, D2> PartialEq<Block<D2>> for Block<D1>
impl<D1, D2> PartialEq<Block<D2>> for Block<D1>
impl<D> Copy for Block<D>
impl<D> Eq for Block<D>
Auto Trait Implementations§
impl<D> Freeze for Block<D>
impl<D> RefUnwindSafe for Block<D>where
D: RefUnwindSafe + ?Sized,
impl<D> Send for Block<D>
impl<D> Sync for Block<D>
impl<D> Unpin for Block<D>
impl<D> UnwindSafe for Block<D>where
D: UnwindSafe + ?Sized,
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
)