Links

Trait Links 

Source
pub trait Links {
    type LinksError;

    // Required method
    fn links(
        bytes: &[u8],
    ) -> Result<impl Iterator<Item = Cid>, Self::LinksError>;
}
Expand description

Trait for returning the links of a serialized IPLD data.

Required Associated Types§

Source

type LinksError

The error that is returned if the link extraction fails.

Required Methods§

Return all links (CIDs) that the given encoded data contains.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§