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§
fn stack_push(self, stack: &mut DataStack)
fn stack_pop(stack: &mut DataStack) -> Self
fn pack_types() -> Vec<TypeHash>
Provided Methods§
fn stack_push_reversed(self, stack: &mut DataStack)
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.