Trait minicbor::decode::Decode[][src]

pub trait Decode<'b>: Sized {
    fn decode(d: &mut Decoder<'b>) -> Result<Self, Error>;
}

A type that can be decoded from CBOR.

Required methods

fn decode(d: &mut Decoder<'b>) -> Result<Self, Error>[src]

Decode a value using the given Decoder.

Loading content...

Implementations on Foreign Types

impl<'b, T: Decode<'b>> Decode<'b> for Box<T>[src]

impl<'a, 'b: 'a> Decode<'b> for &'a str[src]

impl<'b, T: ?Sized> Decode<'b> for Cow<'_, T> where
    T: ToOwned,
    T::Owned: Decode<'b>, 
[src]

impl<'b> Decode<'b> for String[src]

impl<'b, T: Decode<'b>> Decode<'b> for Option<T>[src]

impl<'b, T> Decode<'b> for BinaryHeap<T> where
    T: Decode<'b> + Ord
[src]

impl<'b, T> Decode<'b> for HashSet<T> where
    T: Decode<'b> + Eq + Hash
[src]

impl<'b, T> Decode<'b> for BTreeSet<T> where
    T: Decode<'b> + Ord
[src]

impl<'b, K, V> Decode<'b> for HashMap<K, V> where
    K: Decode<'b> + Eq + Hash,
    V: Decode<'b>, 
[src]

impl<'b, K, V> Decode<'b> for BTreeMap<K, V> where
    K: Decode<'b> + Eq + Ord,
    V: Decode<'b>, 
[src]

impl<'b, T> Decode<'b> for PhantomData<T>[src]

impl<'b> Decode<'b> for ()[src]

impl<'b> Decode<'b> for usize[src]

impl<'b> Decode<'b> for isize[src]

impl<'b> Decode<'b> for u8[src]

impl<'b> Decode<'b> for i8[src]

impl<'b> Decode<'b> for u16[src]

impl<'b> Decode<'b> for i16[src]

impl<'b> Decode<'b> for u32[src]

impl<'b> Decode<'b> for i32[src]

impl<'b> Decode<'b> for u64[src]

impl<'b> Decode<'b> for i64[src]

impl<'b> Decode<'b> for bool[src]

impl<'b> Decode<'b> for f32[src]

impl<'b> Decode<'b> for f64[src]

impl<'b> Decode<'b> for char[src]

impl<'b> Decode<'b> for NonZeroU8[src]

impl<'b> Decode<'b> for NonZeroU16[src]

impl<'b> Decode<'b> for NonZeroU32[src]

impl<'b> Decode<'b> for NonZeroU64[src]

impl<'b> Decode<'b> for NonZeroI8[src]

impl<'b> Decode<'b> for NonZeroI16[src]

impl<'b> Decode<'b> for NonZeroI32[src]

impl<'b> Decode<'b> for NonZeroI64[src]

impl<'b, T: Decode<'b>> Decode<'b> for Vec<T>[src]

impl<'b, T: Decode<'b>> Decode<'b> for VecDeque<T>[src]

impl<'b, T: Decode<'b>> Decode<'b> for LinkedList<T>[src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 0][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 1][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 2][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 3][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 4][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 5][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 6][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 7][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 8][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 9][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 10][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 11][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 12][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 13][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 14][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 15][src]

impl<'b, T: Decode<'b> + Default> Decode<'b> for [T; 16][src]

impl<'b, A: Decode<'b>> Decode<'b> for (A,)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>> Decode<'b> for (A, B)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>> Decode<'b> for (A, B, C)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>> Decode<'b> for (A, B, C, D)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>> Decode<'b> for (A, B, C, D, E)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>> Decode<'b> for (A, B, C, D, E, F)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>, L: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K, L)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>, L: Decode<'b>, M: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K, L, M)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>, L: Decode<'b>, M: Decode<'b>, N: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>, L: Decode<'b>, M: Decode<'b>, N: Decode<'b>, O: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)[src]

impl<'b, A: Decode<'b>, B: Decode<'b>, C: Decode<'b>, D: Decode<'b>, E: Decode<'b>, F: Decode<'b>, G: Decode<'b>, H: Decode<'b>, I: Decode<'b>, J: Decode<'b>, K: Decode<'b>, L: Decode<'b>, M: Decode<'b>, N: Decode<'b>, O: Decode<'b>, P: Decode<'b>> Decode<'b> for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)[src]

impl<'b> Decode<'b> for Duration[src]

impl<'b> Decode<'b> for IpAddr[src]

impl<'b> Decode<'b> for Ipv4Addr[src]

impl<'b> Decode<'b> for Ipv6Addr[src]

impl<'b> Decode<'b> for SocketAddr[src]

impl<'b> Decode<'b> for SocketAddrV4[src]

impl<'b> Decode<'b> for SocketAddrV6[src]

Loading content...

Implementors

impl Decode<'_> for ByteVec[src]

impl<'a, 'b: 'a> Decode<'b> for &'a ByteSlice[src]

Loading content...