Trait dyon::embed::PopVariable
[−]
[src]
pub trait PopVariable: Sized { fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>; }
Implemented by types that can be popped from the runtime stack.
Required Methods
fn pop_var(rt: &Runtime, var: &Variable) -> Result<Self, String>
Converts variable to self. The variable should be resolved before call.
Implementors
impl PopVariable for Variable
impl PopVariable for RustObject
impl PopVariable for bool
impl PopVariable for String
impl PopVariable for Arc<String>
impl PopVariable for u32
impl PopVariable for usize
impl PopVariable for f32
impl PopVariable for f64
impl<T: PopVariable> PopVariable for Option<T>
impl<T: PopVariable, U: PopVariable> PopVariable for Result<T, U>
impl<T: PopVariable> PopVariable for [T; 2]
impl<T: PopVariable> PopVariable for [T; 3]
impl<T: PopVariable> PopVariable for [T; 4]
impl<T: PopVariable, U: PopVariable> PopVariable for (T, U)
impl<T: PopVariable, U: PopVariable, V: PopVariable> PopVariable for (T, U, V)
impl<T: PopVariable, U: PopVariable, V: PopVariable, W: PopVariable> PopVariable for (T, U, V, W)
impl<T: PopVariable> PopVariable for Vec<T>
impl PopVariable for Vec4