Trait uiua::StackArg

source ·
pub trait StackArg {
    // Required method
    fn arg_name(self) -> String;
}
Expand description

A trait for types that can be used as argument specifiers for Uiua::pop

If the stack is empty, the error message will be “Stack was empty when evaluating {arg_name}”

Required Methods§

source

fn arg_name(self) -> String

Get the name of the argument

Implementations on Foreign Types§

source§

impl StackArg for i32

source§

impl StackArg for u8

source§

impl StackArg for ()

source§

impl StackArg for usize

source§

impl StackArg for String

source§

impl<'a> StackArg for &'a str

Implementors§

source§

impl<F, T> StackArg for F
where F: FnOnce() -> T, T: StackArg,