pub enum Functio {
Bf {
instructions: Vec<u8>,
tape_len: usize,
},
Able {
params: Vec<String>,
body: Block,
},
Builtin(BuiltinFunctio),
Chain {
functios: Box<(Functio, Functio)>,
kind: FunctioChainKind,
},
Eval(String),
}Expand description
AbleScript Function
Variants§
Bf
BF instructions and a length of the type
Takes input bytes as parameters
Able
Regular AbleScript functio
Consists of parameter name mapping and AST
Builtin(BuiltinFunctio)
Builtin Rust functio
Chain
Chained functio pair
Eval(String)
Code to be parsed and then executed in current scope
Implementations§
Trait Implementations§
impl StructuralPartialEq for Functio
Auto Trait Implementations§
impl Freeze for Functio
impl !RefUnwindSafe for Functio
impl !Send for Functio
impl !Sync for Functio
impl Unpin for Functio
impl !UnwindSafe for Functio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more