pub trait RandomAccessDecoderFactory {
type Decoder<'a>: Decode + 'a
where Self: 'a;
// Required method
fn new_decoder(&self, node: usize) -> Result<Self::Decoder<'_>>;
}Expand description
A trait providing decoders with random access.
Required Associated Types§
Required Methods§
Sourcefn new_decoder(&self, node: usize) -> Result<Self::Decoder<'_>>
fn new_decoder(&self, node: usize) -> Result<Self::Decoder<'_>>
Creates a new reader starting at the given node.
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.