Trait bytevec::ByteDecodable 
                   
                       [−]
                   
               [src]
pub trait ByteDecodable: Sized {
    fn decode<Size>(bytes: &[u8]) -> BVDecodeResult<Self> where Size: BVSize + ByteDecodable;
    fn decode_max<Size>(bytes: &[u8], limit: Size) -> BVDecodeResult<Self> where Size: BVSize + ByteDecodable { ... }
}Provides deserialization functionality for the implementing types.
Required Methods
fn decode<Size>(bytes: &[u8]) -> BVDecodeResult<Self> where Size: BVSize + ByteDecodable
Returns an instance of Self obtained from the deserialization of the provided byte buffer.
Provided Methods
fn decode_max<Size>(bytes: &[u8], limit: Size) -> BVDecodeResult<Self> where Size: BVSize + ByteDecodable
Returns the result of decode if bytes.len() is less or equal than limit
Implementors
impl ByteDecodable for Stringimpl<T> ByteDecodable for Vec<T> where T: ByteDecodableimpl<T> ByteDecodable for HashSet<T> where T: ByteDecodable + Eq + Hashimpl<K, V> ByteDecodable for HashMap<K, V> where K: ByteDecodable + Hash + Eq, V: ByteDecodableimpl<A, B, C, D, E, F, G, H, I, J, K, L> ByteDecodable for (A, B, C, D, E, F, G, H, I, J, K, L) where A: ByteDecodable, B: ByteDecodable, C: ByteDecodable, D: ByteDecodable, E: ByteDecodable, F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<B, C, D, E, F, G, H, I, J, K, L> ByteDecodable for (B, C, D, E, F, G, H, I, J, K, L) where B: ByteDecodable, C: ByteDecodable, D: ByteDecodable, E: ByteDecodable, F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<C, D, E, F, G, H, I, J, K, L> ByteDecodable for (C, D, E, F, G, H, I, J, K, L) where C: ByteDecodable, D: ByteDecodable, E: ByteDecodable, F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<D, E, F, G, H, I, J, K, L> ByteDecodable for (D, E, F, G, H, I, J, K, L) where D: ByteDecodable, E: ByteDecodable, F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<E, F, G, H, I, J, K, L> ByteDecodable for (E, F, G, H, I, J, K, L) where E: ByteDecodable, F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<F, G, H, I, J, K, L> ByteDecodable for (F, G, H, I, J, K, L) where F: ByteDecodable, G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<G, H, I, J, K, L> ByteDecodable for (G, H, I, J, K, L) where G: ByteDecodable, H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<H, I, J, K, L> ByteDecodable for (H, I, J, K, L) where H: ByteDecodable, I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<I, J, K, L> ByteDecodable for (I, J, K, L) where I: ByteDecodable, J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<J, K, L> ByteDecodable for (J, K, L) where J: ByteDecodable, K: ByteDecodable, L: ByteDecodableimpl<K, L> ByteDecodable for (K, L) where K: ByteDecodable, L: ByteDecodableimpl<L> ByteDecodable for (L,) where L: ByteDecodableimpl ByteDecodable for ()impl ByteDecodable for u8impl ByteDecodable for u16impl ByteDecodable for u32impl ByteDecodable for u64impl ByteDecodable for i8impl ByteDecodable for i16impl ByteDecodable for i32impl ByteDecodable for i64impl ByteDecodable for f32impl ByteDecodable for f64impl ByteDecodable for charimpl ByteDecodable for usize