Trait serialize::UseSpecializedEncodable [−][src]
pub trait UseSpecializedEncodable { fn default_encode<E: Encoder>(&self, _: &mut E) -> Result<(), E::Error> { ... } }
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>
Defaults to returning an error (see SpecializationError
).
Implementations on Foreign Types
impl<'a, T: ?Sized + Encodable> UseSpecializedEncodable for &'a T
[src]
impl<'a, T: ?Sized + Encodable> UseSpecializedEncodable for &'a T
impl<T: ?Sized + Encodable> UseSpecializedEncodable for Box<T>
[src]
impl<T: ?Sized + Encodable> UseSpecializedEncodable for Box<T>