pub struct BcFunction {Show 23 fields
pub maxstacksize: u8,
pub numparams: u8,
pub nups: u8,
pub is_vararg: bool,
pub flags: u8,
pub blocks: Vec<BcBlock>,
pub instructions: Vec<BcInst>,
pub constants: Vec<VmConst>,
pub immediates: Vec<BcImm>,
pub phis: Vec<BcPhi>,
pub projections: Vec<BcProj>,
pub table_shapes: Vec<TableShape>,
pub entry_block: BcOp,
pub exit_block: BcOp,
pub type_info: String,
pub upvalue_types: Vec<LuauBytecodeType>,
pub local_types: Vec<TypedLocal>,
pub protos: Vec<u32>,
pub debugname: String,
pub linedefined: u32,
pub upvalue_names: Vec<String>,
pub locals: Vec<DebugLocal<'static>>,
pub regs: RegMap,
}Fields§
§maxstacksize: u8§numparams: u8§nups: u8§is_vararg: bool§flags: u8§blocks: Vec<BcBlock>§instructions: Vec<BcInst>§constants: Vec<VmConst>§immediates: Vec<BcImm>§phis: Vec<BcPhi>§projections: Vec<BcProj>§table_shapes: Vec<TableShape>§entry_block: BcOp§exit_block: BcOp§type_info: String§upvalue_types: Vec<LuauBytecodeType>§local_types: Vec<TypedLocal>§protos: Vec<u32>§debugname: String§linedefined: u32§upvalue_names: Vec<String>§locals: Vec<DebugLocal<'static>>§regs: RegMapImplementations§
Source§impl BcFunction
impl BcFunction
pub fn as_inst_op(&self, op: BcOp) -> *mut BcInst
Source§impl BcFunction
impl BcFunction
pub fn get_block_index(&self, block: &BcBlock) -> u32
Source§impl BcFunction
impl BcFunction
pub fn get_inst_index(&self, inst: &BcInst) -> u32
Trait Implementations§
Source§impl Clone for BcFunction
impl Clone for BcFunction
Source§fn clone(&self) -> BcFunction
fn clone(&self) -> BcFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BcFunction
impl Debug for BcFunction
Auto Trait Implementations§
impl Freeze for BcFunction
impl RefUnwindSafe for BcFunction
impl Send for BcFunction
impl Sync for BcFunction
impl Unpin for BcFunction
impl UnsafeUnpin for BcFunction
impl UnwindSafe for BcFunction
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