Trait dyon::embed::PopVariable

source ·
pub trait PopVariable: Sized {
    // Required method
    fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>;
}
Expand description

Implemented by types that can be popped from the runtime stack.

Required Methods§

source

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

Converts variable to self. The variable should be resolved before call.

Implementations on Foreign Types§

source§

impl PopVariable for u32

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable> PopVariable for Option<T>

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable, U: PopVariable, V: PopVariable> PopVariable for (T, U, V)

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable> PopVariable for [T; 2]

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable, U: PopVariable, V: PopVariable, W: PopVariable> PopVariable for (T, U, V, W)

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable> PopVariable for [T; 3]

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for f32

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable, U: PopVariable> PopVariable for (T, U)

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable> PopVariable for Vec<T>

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for String

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for f64

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for usize

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable> PopVariable for [T; 4]

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for Arc<String>

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl<T: PopVariable, U: PopVariable> PopVariable for Result<T, U>

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

source§

impl PopVariable for bool

source§

fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>

Implementors§