pub struct MultiRawBlockFile {
pub root: Block,
pub parts: Vec<RawBlockFile>,
}Fields§
§root: Block§parts: Vec<RawBlockFile>Implementations§
Source§impl MultiRawBlockFile
impl MultiRawBlockFile
pub fn from_bytes(bytes: &[u8]) -> MultiRawBlockFile
pub fn new(parts: Vec<RawBlockFile>) -> MultiRawBlockFile
Trait Implementations§
Source§impl Clone for MultiRawBlockFile
impl Clone for MultiRawBlockFile
Source§fn clone(&self) -> MultiRawBlockFile
fn clone(&self) -> MultiRawBlockFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Package for MultiRawBlockFile
impl Package for MultiRawBlockFile
type BlockIterator = Chain<Once<Block<Multicodec, Multihash>>, Flatten<Map<IntoIter<RawBlockFile>, fn(RawBlockFile) -> <RawBlockFile as Package>::BlockIterator>>>
fn cid(&self) -> &Cid
fn total_size(&self) -> u64
fn into_blocks(self) -> Self::BlockIterator
fn link(&self, name: String) -> PbLink
Auto Trait Implementations§
impl Freeze for MultiRawBlockFile
impl RefUnwindSafe for MultiRawBlockFile
impl Send for MultiRawBlockFile
impl Sync for MultiRawBlockFile
impl Unpin for MultiRawBlockFile
impl UnwindSafe for MultiRawBlockFile
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