pub struct Closure {
pub function: Function,
pub captured: Array,
}
Fields§
§function: Function
§captured: Array
Implementations§
Source§impl Closure
impl Closure
pub fn new__intuicio_function(context: &mut Context, registry: &Registry)
pub fn new__define_signature(registry: &Registry) -> FunctionSignature
pub fn new__define_function(registry: &Registry) -> Function
pub fn call__intuicio_function(context: &mut Context, registry: &Registry)
pub fn call__define_signature(registry: &Registry) -> FunctionSignature
pub fn call__define_function(registry: &Registry) -> Function
Source§impl Closure
impl Closure
pub fn new( registry: &Registry, function: Reference, captured: Reference, ) -> Reference
pub fn invoke( &self, context: &mut Context, registry: &Registry, arguments: &[Reference], ) -> Reference
pub fn call( context: &mut Context, registry: &Registry, closure: Reference, arguments: Reference, ) -> Reference
Trait Implementations§
Source§impl IntuicioStruct for Closure
impl IntuicioStruct for Closure
fn define_struct(registry: &Registry) -> Struct
Auto Trait Implementations§
impl Freeze for Closure
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
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