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§
Sourcefn from_links(
decoder: &mut LinksDecoder<'_>,
link: LinkId,
) -> Result<Self, LinksCodecError>
fn from_links( decoder: &mut LinksDecoder<'_>, link: LinkId, ) -> Result<Self, LinksCodecError>
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", so this trait is not object safe.