Trait rustc_span::Decodable [−][src]
pub(crate) trait Decodable<D> where
D: Decoder, {
fn decode(d: &mut D) -> Result<Self, <D as Decoder>::Error>;
}Expand description
Trait for types that can be deserialized
This can be implemented using the Decodable, TyDecodable and
MetadataDecodable macros.
Decodableshould be used in crates that don’t depend onrustc_middle.MetadataDecodableis used inrustc_metadatafor types that containrustc_metadata::rmeta::Lazy.TyDecodableshould be used for types that are only serialized in crate metadata or the incremental cache. This is most types inrustc_middle.