Package

Trait Package 

Source
pub trait Package {
    type BlockIterator: Iterator<Item = Block>;

    // Required methods
    fn cid(&self) -> &Cid;
    fn total_size(&self) -> u64;
    fn into_blocks(self) -> Self::BlockIterator;

    // Provided method
    fn link(&self, name: String) -> PbLink { ... }
}

Required Associated Types§

Required Methods§

Source

fn cid(&self) -> &Cid

Source

fn total_size(&self) -> u64

Source

fn into_blocks(self) -> Self::BlockIterator

Provided Methods§

Implementors§