Trait bytevec::ByteEncodable 
                   
                       [−]
                   
               [src]
pub trait ByteEncodable {
    fn get_size<Size>(&self) -> Option<Size> where Size: BVSize + ByteEncodable;
    fn encode<Size>(&self) -> BVEncodeResult<Vec<u8>> where Size: BVSize + ByteEncodable;
}Provides serialization functionality for the implementing types.
Required Methods
fn get_size<Size>(&self) -> Option<Size> where Size: BVSize + ByteEncodable
Returns the total length of the byte buffer
than can be obtained through the encode method  
fn encode<Size>(&self) -> BVEncodeResult<Vec<u8>> where Size: BVSize + ByteEncodable
Returs a byte representation of the original data object
Implementors
impl ByteEncodable for strimpl<'a> ByteEncodable for &'a strimpl ByteEncodable for Stringimpl<T> ByteEncodable for Vec<T> where T: ByteEncodableimpl<T> ByteEncodable for [T] where T: ByteEncodableimpl<T> ByteEncodable for HashSet<T> where T: ByteEncodable + Eq + Hashimpl<K, V> ByteEncodable for HashMap<K, V> where K: ByteEncodable + Hash + Eq, V: ByteEncodableimpl<A, B, C, D, E, F, G, H, I, J, K, L> ByteEncodable for (A, B, C, D, E, F, G, H, I, J, K, L) where A: ByteEncodable, B: ByteEncodable, C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, A, B, C, D, E, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a A, &'a B, &'a C, &'a D, &'a E, &'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where A: ByteEncodable, B: ByteEncodable, C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<B, C, D, E, F, G, H, I, J, K, L> ByteEncodable for (B, C, D, E, F, G, H, I, J, K, L) where B: ByteEncodable, C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, B, C, D, E, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a B, &'a C, &'a D, &'a E, &'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where B: ByteEncodable, C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<C, D, E, F, G, H, I, J, K, L> ByteEncodable for (C, D, E, F, G, H, I, J, K, L) where C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, C, D, E, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a C, &'a D, &'a E, &'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where C: ByteEncodable, D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<D, E, F, G, H, I, J, K, L> ByteEncodable for (D, E, F, G, H, I, J, K, L) where D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, D, E, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a D, &'a E, &'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where D: ByteEncodable, E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<E, F, G, H, I, J, K, L> ByteEncodable for (E, F, G, H, I, J, K, L) where E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, E, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a E, &'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where E: ByteEncodable, F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<F, G, H, I, J, K, L> ByteEncodable for (F, G, H, I, J, K, L) where F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, F, G, H, I, J, K, L> ByteEncodable for &'a (&'a F, &'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where F: ByteEncodable, G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<G, H, I, J, K, L> ByteEncodable for (G, H, I, J, K, L) where G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, G, H, I, J, K, L> ByteEncodable for &'a (&'a G, &'a H, &'a I, &'a J, &'a K, &'a L) where G: ByteEncodable, H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<H, I, J, K, L> ByteEncodable for (H, I, J, K, L) where H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, H, I, J, K, L> ByteEncodable for &'a (&'a H, &'a I, &'a J, &'a K, &'a L) where H: ByteEncodable, I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<I, J, K, L> ByteEncodable for (I, J, K, L) where I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, I, J, K, L> ByteEncodable for &'a (&'a I, &'a J, &'a K, &'a L) where I: ByteEncodable, J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<J, K, L> ByteEncodable for (J, K, L) where J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<'a, J, K, L> ByteEncodable for &'a (&'a J, &'a K, &'a L) where J: ByteEncodable, K: ByteEncodable, L: ByteEncodableimpl<K, L> ByteEncodable for (K, L) where K: ByteEncodable, L: ByteEncodableimpl<'a, K, L> ByteEncodable for &'a (&'a K, &'a L) where K: ByteEncodable, L: ByteEncodableimpl<L> ByteEncodable for (L,) where L: ByteEncodableimpl<'a, L> ByteEncodable for &'a (&'a L,) where L: ByteEncodableimpl ByteEncodable for ()impl ByteEncodable for u8impl ByteEncodable for u16impl ByteEncodable for u32impl ByteEncodable for u64impl ByteEncodable for i8impl ByteEncodable for i16impl ByteEncodable for i32impl ByteEncodable for i64impl ByteEncodable for f32impl ByteEncodable for f64impl ByteEncodable for charimpl ByteEncodable for usize