Trait serialize::SpecializedDecoder
[−]
[src]
pub trait SpecializedDecoder<T: UseSpecializedDecodable>: Decoder { fn specialized_decode(&mut self) -> Result<T, Self::Error>; }
Implement this trait on decoders, with T
being the type
you want to decode (employing UseSpecializedDecodable
),
using a strategy specific to the decoder.
Required Methods
fn specialized_decode(&mut self) -> Result<T, Self::Error>
Decode a value in a manner specific to this decoder state.
Implementors
impl<D: Decoder, T: UseSpecializedDecodable> SpecializedDecoder<T> for D