intuicio_data::data_stack

Trait DataStackPack

source
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: 'static> DataStackPack for (A,)

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

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

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

impl<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> DataStackPack for (A, B, C, D, E, F, G, H, I, J, K, L, M)

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

impl<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> DataStackPack for (A, B, C, D, E, F, G, H, I, J, K, L, M, N)

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

impl<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> DataStackPack for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

source§

impl<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> DataStackPack for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)

source§

fn stack_push(self, stack: &mut DataStack)

source§

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

source§

fn pack_types() -> Vec<TypeHash>

Implementors§