Struct fvm_ipld_blockstore::Block
source · pub struct Block<D>where
D: AsRef<[u8]> + ?Sized,{
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<D> PartialEq<Block<D>> for Block<D>where
D: AsRef<[u8]> + ?Sized + PartialEq,
impl<D> PartialEq<Block<D>> for Block<D>where D: AsRef<[u8]> + ?Sized + PartialEq,
impl<D> Copy for Block<D>where D: AsRef<[u8]> + ?Sized + Copy,
impl<D> Eq for Block<D>where D: AsRef<[u8]> + ?Sized + Eq,
impl<D> StructuralEq for Block<D>where D: AsRef<[u8]> + ?Sized,
impl<D> StructuralPartialEq for Block<D>where D: AsRef<[u8]> + ?Sized,
Auto Trait Implementations§
impl<D: ?Sized> RefUnwindSafe for Block<D>where D: RefUnwindSafe,
impl<D: ?Sized> Send for Block<D>where D: Send,
impl<D: ?Sized> Sync for Block<D>where D: Sync,
impl<D: ?Sized> Unpin for Block<D>where D: Unpin,
impl<D: ?Sized> UnwindSafe for Block<D>where D: UnwindSafe,
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