pub struct FunctionData {
pub fn_id: u32,
pub name: Rc<str>,
pub captures: Vec<Cell>,
}Expand description
A first-class function value: which compiled function it is (fn_id, matched
by the generated call_function dispatcher), the name it prints and errors
under, and the cells it captured from its enclosing scope. Two function values
are equal only when they share both the definition and the captured cells.
Fields§
§fn_id: u32§name: Rc<str>§captures: Vec<Cell>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionData
impl !Send for FunctionData
impl !Sync for FunctionData
impl !UnwindSafe for FunctionData
impl Freeze for FunctionData
impl Unpin for FunctionData
impl UnsafeUnpin for FunctionData
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