Trait bit_manager::data::BitStore [] [src]

pub trait BitStore: Sized {
    fn read_from<R: BitRead>(reader: &mut R) -> Result<Self>;
fn write_to<W: BitWrite>(&self, writer: &mut W) -> Result<()>; }

A trait for storing a value directly

Derive

BitStore can be derived using the bit manager derive crate.

Storage Primitives

  • bool, u8 (directly implemented)
  • u16, u32, u64
  • i8, i16, i32, i64
  • f32, f64
  • String (through StringConverter)
  • Option<T> where T can be stored
  • Result<T, F> where T and F can be stored
  • [T; 0] through [T; 32] where T can be stored
  • () (the unit type) and all tuples with 2 through 26 storable values

Required Methods

Reads a value from the given reader.

Writes this value to the given writer.

Implementations on Foreign Types

impl BitStore for bool
[src]

[src]

[src]

impl BitStore for u8
[src]

[src]

[src]

impl BitStore for i8
[src]

[src]

[src]

impl BitStore for u16
[src]

[src]

[src]

impl BitStore for i16
[src]

[src]

[src]

impl BitStore for u32
[src]

[src]

[src]

impl BitStore for i32
[src]

[src]

[src]

impl BitStore for u64
[src]

[src]

[src]

impl BitStore for i64
[src]

[src]

[src]

impl BitStore for f32
[src]

[src]

[src]

impl BitStore for f64
[src]

[src]

[src]

impl BitStore for String
[src]

[src]

[src]

impl<T: BitStore> BitStore for Option<T>
[src]

[src]

[src]

impl<T: BitStore, F: BitStore> BitStore for Result<T, F>
[src]

[src]

[src]

impl<T> BitStore for [T; 0]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 1]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 2]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 3]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 4]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 5]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 6]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 7]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 8]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 9]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 10]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 11]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 12]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 13]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 14]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 15]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 16]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 17]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 18]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 19]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 20]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 21]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 22]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 23]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 24]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 25]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 26]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 27]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 28]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 29]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 30]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 31]
[src]

[src]

[src]

impl<T: BitStore> BitStore for [T; 32]
[src]

[src]

[src]

impl BitStore for ()
[src]

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

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

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore,
    V: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore,
    V: BitStore,
    W: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore,
    V: BitStore,
    W: BitStore,
    X: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore,
    V: BitStore,
    W: BitStore,
    X: BitStore,
    Y: BitStore
[src]

[src]

[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> BitStore for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z) where
    A: BitStore,
    B: BitStore,
    C: BitStore,
    D: BitStore,
    E: BitStore,
    F: BitStore,
    G: BitStore,
    H: BitStore,
    I: BitStore,
    J: BitStore,
    K: BitStore,
    L: BitStore,
    M: BitStore,
    N: BitStore,
    O: BitStore,
    P: BitStore,
    Q: BitStore,
    R: BitStore,
    S: BitStore,
    T: BitStore,
    U: BitStore,
    V: BitStore,
    W: BitStore,
    X: BitStore,
    Y: BitStore,
    Z: BitStore
[src]

[src]

[src]

Implementors