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§
type BlockIterator: Iterator<Item = Block>
Required Methods§
fn cid(&self) -> &Cid
fn total_size(&self) -> u64
fn into_blocks(self) -> Self::BlockIterator
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".