pub trait InternerDecoder: Decoder {
type Interner: Interner;
// Required method
fn interner(&self) -> Self::Interner;
}Expand description
A decoder that can reconstruct interned type IR values by supplying the interner that owns the decoded data.
Some serialized type IR wrappers only store their structural kind. When
decoding, those kinds have to be re-interned instead of rebuilt as raw
values, so their Decodable impls need access to the active interner in
addition to the byte stream.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".