Trait budvm::FromStack

source ·
pub trait FromStack: Sized {
    // Required method
    fn from_value(value: Value) -> Result<Self, FaultKind>;
}
Expand description

A type that can be constructed from popping from the virtual machine stack.

Required Methods§

source

fn from_value(value: Value) -> Result<Self, FaultKind>

Returns an instance constructing from the stack.

Implementations on Foreign Types§

source§

impl FromStack for bool

source§

impl FromStack for i64

source§

impl FromStack for ()

source§

impl FromStack for f64

Implementors§