pub struct CompiledFunction {
pub name: String,
pub params: Vec<String>,
pub default_start: Option<usize>,
pub chunk: Chunk,
pub is_generator: bool,
}Expand description
A compiled function (closure body).
Fields§
§name: String§params: Vec<String>§default_start: Option<usize>Index of the first parameter with a default value, or None if all required.
chunk: Chunk§is_generator: boolTrue if the function body contains yield expressions (generator function).
Trait Implementations§
Source§impl Clone for CompiledFunction
impl Clone for CompiledFunction
Source§fn clone(&self) -> CompiledFunction
fn clone(&self) -> CompiledFunction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CompiledFunction
impl RefUnwindSafe for CompiledFunction
impl Send for CompiledFunction
impl Sync for CompiledFunction
impl Unpin for CompiledFunction
impl UnsafeUnpin for CompiledFunction
impl UnwindSafe for CompiledFunction
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