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§
Sourcetype LinksError
type LinksError
The error that is returned if the link extraction fails.
Required Methods§
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.