Struct lucia_lang::objects::ExtClosure
source · pub struct ExtClosure {
pub func: ExtClosureFunc,
pub upvalues: Vec<Value>,
}Expand description
The ext closure object.
Fields§
§func: ExtClosureFunc§upvalues: Vec<Value>Implementations§
source§impl ExtClosure
impl ExtClosure
pub fn new(func: ExtClosureFunc, upvalues: Vec<Value>) -> Self
Trait Implementations§
source§impl Clone for ExtClosure
impl Clone for ExtClosure
source§fn clone(&self) -> ExtClosure
fn clone(&self) -> ExtClosure
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ExtClosure
impl Debug for ExtClosure
source§impl Display for ExtClosure
impl Display for ExtClosure
source§impl PartialEq<ExtClosure> for ExtClosure
impl PartialEq<ExtClosure> for ExtClosure
source§impl Trace for ExtClosure
impl Trace for ExtClosure
impl Eq for ExtClosure
Auto Trait Implementations§
impl !RefUnwindSafe for ExtClosure
impl !Send for ExtClosure
impl !Sync for ExtClosure
impl Unpin for ExtClosure
impl !UnwindSafe for ExtClosure
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.