Enum rant::RantFunctionInterface
source · [−]pub enum RantFunctionInterface {
Foreign(Rc<dyn Fn(&mut VM<'_>, Vec<RantValue>) -> Result<(), RuntimeError>>),
User(Rc<Sequence>),
}
Expand description
Defines endpoint variants for Rant functions.
Variants
Foreign(Rc<dyn Fn(&mut VM<'_>, Vec<RantValue>) -> Result<(), RuntimeError>>)
Represents a foreign function as a wrapper function accepting a variable number of arguments.
User(Rc<Sequence>)
Represents a user function as an RST.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RantFunctionInterface
impl !Send for RantFunctionInterface
impl !Sync for RantFunctionInterface
impl Unpin for RantFunctionInterface
impl !UnwindSafe for RantFunctionInterface
Blanket Implementations
Mutably borrows from an owned value. Read more