pub struct FunctionEntry {
pub name: String,
pub arity: u16,
pub env_size: u16,
pub convention: CallConvention,
pub is_recursive: bool,
pub is_builtin: bool,
pub is_inlined: bool,
pub frame_size: u16,
pub param_names: Vec<String>,
}Expand description
An entry in the global function table.
Each compiled function has an entry that describes its properties.
Fields§
§name: StringThe function’s name.
arity: u16Total arity.
env_size: u16Number of environment variables expected (for closures).
convention: CallConventionPreferred call convention.
is_recursive: boolWhether this function is recursive.
is_builtin: boolWhether this function is a built-in.
is_inlined: boolWhether this function has been inlined at all call sites.
frame_size: u16Stack frame size (in words) needed for local variables.
param_names: Vec<String>Parameter names (for debugging).
Implementations§
Trait Implementations§
Source§impl Clone for FunctionEntry
impl Clone for FunctionEntry
Source§fn clone(&self) -> FunctionEntry
fn clone(&self) -> FunctionEntry
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 moreSource§impl Debug for FunctionEntry
impl Debug for FunctionEntry
Auto Trait Implementations§
impl Freeze for FunctionEntry
impl RefUnwindSafe for FunctionEntry
impl Send for FunctionEntry
impl Sync for FunctionEntry
impl Unpin for FunctionEntry
impl UnsafeUnpin for FunctionEntry
impl UnwindSafe for FunctionEntry
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