Trait rustc_serialize::serialize::Encodable
source · [−]Expand description
Trait for types that can be serialized
This can be implemented using the Encodable
, TyEncodable
and
MetadataEncodable
macros.
Encodable
should be used in crates that don’t depend onrustc_middle
.MetadataEncodable
is used inrustc_metadata
for types that containrustc_metadata::rmeta::Lazy
.TyEncodable
should be used for types that are only serialized in crate metadata or the incremental cache. This is most types inrustc_middle
.