Trait probor::Decodable [] [src]

pub trait Decodable: Sized {
    fn decode_opt<R: Input>(
        d: &mut Decoder<R>
    ) -> Result<Option<Self>, DecodeError>; }

Required Methods

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

Implementations on Foreign Types

impl<A: Decodable> Decodable for Option<A>
[src]

[src]

impl<A: Decodable> Decodable for Box<A>
[src]

[src]

impl<A: Decodable> Decodable for Arc<A>
[src]

[src]

impl Decodable for String
[src]

[src]

impl Decodable for u64
[src]

[src]

impl Decodable for u32
[src]

[src]

impl Decodable for u16
[src]

[src]

impl Decodable for u8
[src]

[src]

impl Decodable for bool
[src]

[src]

impl Decodable for i64
[src]

[src]

impl Decodable for i32
[src]

[src]

impl Decodable for i16
[src]

[src]

impl Decodable for i8
[src]

[src]

impl Decodable for f64
[src]

[src]

impl Decodable for f32
[src]

[src]

impl Decodable for usize
[src]

[src]

impl<A: Decodable> Decodable for (A,)
[src]

[src]

impl<A: Decodable, B: Decodable> Decodable for (A, B)
[src]

[src]

impl<A: Decodable, B: Decodable, C: Decodable> Decodable for (A, B, C)
[src]

[src]

impl<T: Decodable> Decodable for Vec<T>
[src]

[src]

impl<T: Decodable> Decodable for VecDeque<T>
[src]

[src]

impl<K: Decodable + Hash + Eq, V: Decodable> Decodable for HashMap<K, V>
[src]

[src]

Implementors