[][src]Trait desert::CountBytesLE

pub trait CountBytesLE {
    fn count_from_bytes_le(buf: &[u8]) -> Result<usize, Error>;
fn count_bytes_le(&self) -> usize; fn count_from_bytes_le_more(buf: &[u8]) -> Result<Option<usize>, Error> { ... } }

Count how many bytes to read from a byte slice for a type and calculate how many bytes the serialization would contain. In little endian.

Required methods

fn count_from_bytes_le(buf: &[u8]) -> Result<usize, Error>

Return how many bytes from buf would be required to deserialize Self in little endian.

fn count_bytes_le(&self) -> usize

Return the number of bytes that the serialization would require.

Loading content...

Provided methods

fn count_from_bytes_le_more(buf: &[u8]) -> Result<Option<usize>, Error>

Return how many bytes from buf would be required to deserialize Self in little endian, where if there are not enough bytes in buf to know how many bytes would be required, you will receive None or otherwise Some(nbytes).

Loading content...

Implementations on Foreign Types

impl CountBytesLE for u8[src]

impl CountBytesLE for u16[src]

impl CountBytesLE for u32[src]

impl CountBytesLE for u64[src]

impl CountBytesLE for u128[src]

impl CountBytesLE for i8[src]

impl CountBytesLE for i16[src]

impl CountBytesLE for i32[src]

impl CountBytesLE for i64[src]

impl CountBytesLE for i128[src]

impl CountBytesLE for f32[src]

impl CountBytesLE for f64[src]

impl CountBytesLE for bool[src]

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

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

impl<A, B, C, D> CountBytesLE for (A, B, C, D) where
    A: CountBytesLE,
    B: CountBytesLE,
    C: CountBytesLE,
    D: CountBytesLE
[src]

impl<A, B, C, D, E> CountBytesLE for (A, B, C, D, E) where
    A: CountBytesLE,
    B: CountBytesLE,
    C: CountBytesLE,
    D: CountBytesLE,
    E: CountBytesLE
[src]

impl<A, B, C, D, E, F> CountBytesLE for (A, B, C, D, E, F) where
    A: CountBytesLE,
    B: CountBytesLE,
    C: CountBytesLE,
    D: CountBytesLE,
    E: CountBytesLE,
    F: CountBytesLE
[src]

impl<A, B, C, D, E, F, G> CountBytesLE for (A, B, C, D, E, F, G) where
    A: CountBytesLE,
    B: CountBytesLE,
    C: CountBytesLE,
    D: CountBytesLE,
    E: CountBytesLE,
    F: CountBytesLE,
    G: CountBytesLE
[src]

impl<A, B, C, D, E, F, G, H> CountBytesLE for (A, B, C, D, E, F, G, H) where
    A: CountBytesLE,
    B: CountBytesLE,
    C: CountBytesLE,
    D: CountBytesLE,
    E: CountBytesLE,
    F: CountBytesLE,
    G: CountBytesLE,
    H: CountBytesLE
[src]

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

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

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

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

impl<T> CountBytesLE for [T; 1] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 2] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 3] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 4] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 5] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 6] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 7] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 8] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 9] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 10] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 11] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 12] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 13] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 14] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 15] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 16] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 17] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 18] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 19] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 20] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 21] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 22] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 23] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 24] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 25] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 26] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 27] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 28] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 29] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 30] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 31] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 32] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 33] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 34] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 35] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 36] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 37] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 38] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 39] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 40] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 41] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 42] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 43] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 44] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 45] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 46] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 47] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 48] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 49] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 50] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 51] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 52] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 53] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 54] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 55] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 56] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 57] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 58] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 59] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 60] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 61] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 62] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 63] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 64] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 65] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 66] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 67] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 68] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 69] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 70] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 71] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 72] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 73] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 74] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 75] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 76] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 77] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 78] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 79] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 80] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 81] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 82] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 83] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 84] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 85] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 86] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 87] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 88] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 89] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 90] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 91] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 92] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 93] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 94] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 95] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 96] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 97] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 98] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 99] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 100] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 128] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 256] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 512] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 1024] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 2048] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 4096] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 8192] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 16384] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 32768] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T; 65536] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for [T] where
    T: CountBytesLE
[src]

impl<T> CountBytesLE for Vec<T> where
    T: CountBytesLE
[src]

Loading content...

Implementors

Loading content...