pub struct Function {
pub name: String,
pub arity: u8,
pub code_offset: usize,
pub locals: Vec<String>,
}
Expand description
Function representation in bytecode
Fields§
§name: String
Name of the function
arity: u8
Number of parameters
code_offset: usize
Offset in the chunk where this function’s code begins
locals: Vec<String>
Local variable names used by this function
Trait Implementations§
Source§impl DeserializeFromReader for Box<Function>
impl DeserializeFromReader for Box<Function>
fn deserialize(reader: &mut dyn Read) -> Result<Self>
Source§impl DisplayValue for Box<Function>
impl DisplayValue for Box<Function>
fn display_value(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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