Trait serialize::UseSpecializedEncodable
[−]
[src]
pub trait UseSpecializedEncodable { fn default_encode<E: Encoder>(&self, _: &mut E) -> Result<(), E::Error> { ... } }
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
Implement this trait on your type to get an Encodable
implementation which goes through SpecializedEncoder
.
Provided Methods
fn default_encode<E: Encoder>(&self, _: &mut E) -> Result<(), E::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
Defaults to returning an error (see SpecializationError
).