Trait Store

Source
pub trait Store {
    // Required methods
    fn store(&self, q: &mut ByteQue);
    fn restore(q: &mut ByteQue) -> Self;
}

Required Methods§

Source

fn store(&self, q: &mut ByteQue)

Source

fn restore(q: &mut ByteQue) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Store for bool

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for char

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for f32

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for f64

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for i8

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for i16

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for i32

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for i64

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for i128

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for u8

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for u16

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for u32

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for u64

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for u128

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for ()

Source§

fn store(&self, _: &mut ByteQue)

Source§

fn restore(_: &mut ByteQue) -> Self

Source§

impl Store for usize

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl Store for String

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A> Store for (A,)
where A: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B> Store for (A, B)
where A: Store, B: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C> Store for (A, B, C)
where A: Store, B: Store, C: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D> Store for (A, B, C, D)
where A: Store, B: Store, C: Store, D: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E> Store for (A, B, C, D, E)
where A: Store, B: Store, C: Store, D: Store, E: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E, F> Store for (A, B, C, D, E, F)
where A: Store, B: Store, C: Store, D: Store, E: Store, F: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E, F, G> Store for (A, B, C, D, E, F, G)
where A: Store, B: Store, C: Store, D: Store, E: Store, F: Store, G: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E, F, G, H> Store for (A, B, C, D, E, F, G, H)
where A: Store, B: Store, C: Store, D: Store, E: Store, F: Store, G: Store, H: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E, F, G, H, I> Store for (A, B, C, D, E, F, G, H, I)
where A: Store, B: Store, C: Store, D: Store, E: Store, F: Store, G: Store, H: Store, I: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<A, B, C, D, E, F, G, H, I, J> Store for (A, B, C, D, E, F, G, H, I, J)
where A: Store, B: Store, C: Store, D: Store, E: Store, F: Store, G: Store, H: Store, I: Store, J: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

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

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<K, V> Store for HashMap<K, V>
where K: Store + Eq + Hash, V: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<T> Store for Option<T>
where T: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<T> Store for Box<T>
where T: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Source§

impl<T> Store for Vec<T>
where T: Store,

Source§

fn store(&self, q: &mut ByteQue)

Source§

fn restore(q: &mut ByteQue) -> Self

Implementors§

Source§

impl<T> Store for Result<T>
where T: Store,