Skip to main content

FromLinks

Trait FromLinks 

Source
pub trait FromLinks: Sized {
    // Required method
    fn from_links(
        decoder: &mut LinksDecoder<'_>,
        link: LinkId,
    ) -> Result<Self, LinksCodecError>;
}
Expand description

Decodes a Rust value from links.

Required Methods§

Reconstructs this value from a root link id.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Implementors§