pub trait DataStackPack: Sized {
    // Required methods
    fn stack_push(self, stack: &mut DataStack);
    fn stack_pop(stack: &mut DataStack) -> Self;
    fn pack_types() -> Vec<TypeHash>;

    // Provided method
    fn stack_push_reversed(self, stack: &mut DataStack) { ... }
}

Required Methods§

source

fn stack_push(self, stack: &mut DataStack)

source

fn stack_pop(stack: &mut DataStack) -> Self

source

fn pack_types() -> Vec<TypeHash>

Provided Methods§

source

fn stack_push_reversed(self, stack: &mut DataStack)

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DataStackPack for ()

source§

impl<A> DataStackPack for (A,)
where A: 'static,

source§

impl<A, B> DataStackPack for (A, B)
where A: 'static, B: 'static,

source§

impl<A, B, C> DataStackPack for (A, B, C)
where A: 'static, B: 'static, C: 'static,

source§

impl<A, B, C, D> DataStackPack for (A, B, C, D)
where A: 'static, B: 'static, C: 'static, D: 'static,

source§

impl<A, B, C, D, E> DataStackPack for (A, B, C, D, E)
where A: 'static, B: 'static, C: 'static, D: 'static, E: 'static,

source§

impl<A, B, C, D, E, F> DataStackPack for (A, B, C, D, E, F)
where A: 'static, B: 'static, C: 'static, D: 'static, E: 'static, F: 'static,

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§