[][src]Trait desert::CountBytesBE

pub trait CountBytesBE {
    fn count_from_bytes_be(buf: &[u8]) -> Result<usize, Error>;
fn count_bytes_be(&self) -> usize; fn count_from_bytes_be_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 big endian.

Required methods

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

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

fn count_bytes_be(&self) -> usize

Return the number of bytes that the serialization would require.

Loading content...

Provided methods

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

Return how many bytes from buf would be required to deserialize Self in big 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 CountBytesBE for u8[src]

impl CountBytesBE for u16[src]

impl CountBytesBE for u32[src]

impl CountBytesBE for u64[src]

impl CountBytesBE for u128[src]

impl CountBytesBE for i8[src]

impl CountBytesBE for i16[src]

impl CountBytesBE for i32[src]

impl CountBytesBE for i64[src]

impl CountBytesBE for i128[src]

impl CountBytesBE for f32[src]

impl CountBytesBE for f64[src]

impl CountBytesBE for bool[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

Loading content...