Trait probor::Decodable
[−]
[src]
pub trait Decodable: Sized { fn decode_opt<R: Input>(d: &mut Decoder<R>) -> Result<Option<Self>, DecodeError>; }
Required Methods
fn decode_opt<R: Input>(d: &mut Decoder<R>) -> Result<Option<Self>, DecodeError>
Decode an object or null
This must be optional return so that any value may become optional and we can't determine it in advance
Implementors
impl<A: Decodable> Decodable for Option<A>
impl<A: Decodable> Decodable for Box<A>
impl<A: Decodable> Decodable for Arc<A>
impl Decodable for String
impl Decodable for u64
impl Decodable for u32
impl Decodable for u16
impl Decodable for u8
impl Decodable for bool
impl Decodable for i64
impl Decodable for i32
impl Decodable for i16
impl Decodable for i8
impl Decodable for f64
impl Decodable for f32
impl Decodable for usize
impl<A: Decodable> Decodable for (A,)
impl<A: Decodable, B: Decodable> Decodable for (A, B)
impl<A: Decodable, B: Decodable, C: Decodable> Decodable for (A, B, C)
impl<T: Decodable> Decodable for Vec<T>
impl<T: Decodable> Decodable for VecDeque<T>
impl<K: Decodable + Hash + Eq, V: Decodable> Decodable for HashMap<K, V>