Struct lucia_lang::objects::Closure
source · pub struct Closure {
pub function: Code,
pub base_closure: Option<Gc<RefCell<Closure>>>,
pub upvalues: Vec<Value>,
}Expand description
The closure object. Any function is a closure.
Fields§
§function: Code§base_closure: Option<Gc<RefCell<Closure>>>§upvalues: Vec<Value>Implementations§
Trait Implementations§
impl Eq for Closure
Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl !Send for Closure
impl !Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.