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§impl Debug for BcFunction
impl Debug for BcFunction
Auto Trait Implementations§
impl Forget for BcFunction
impl Freeze for BcFunctionwhere
*const u8 is !null: Freeze,
PhantomData<BcBlock>: Freeze,
PhantomData<BcInst>: Freeze,
PhantomData<BcVmConst>: Freeze,
PhantomData<BcImm>: Freeze,
PhantomData<BcPhi>: Freeze,
PhantomData<BcProj>: Freeze,
PhantomData<TableShape>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<LuauBytecodeType>: Freeze,
PhantomData<TypedLocal>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<String>: Freeze,
PhantomData<DebugLocal<'static>>: Freeze,
PhantomData<(BcOp, u8)>: Freeze,
impl Move for BcFunction
impl RefUnwindSafe for BcFunction
impl Send for BcFunctionwhere
RawVecInner: Send,
SmallVector<BcBlockEdge, 2>: Send,
SmallVector<BcOp, 4>: Send,
&'static str: Send,
RawTable<(BcOp, u8)>: Send,
impl Sync for BcFunctionwhere
RawVecInner: Sync,
SmallVector<BcBlockEdge, 2>: Sync,
SmallVector<BcOp, 4>: Sync,
RawTable<(BcOp, u8)>: Sync,
impl Unpin for BcFunction
impl UnsafeUnpin for BcFunctionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BcBlock>: UnsafeUnpin,
PhantomData<BcInst>: UnsafeUnpin,
PhantomData<BcVmConst>: UnsafeUnpin,
PhantomData<BcImm>: UnsafeUnpin,
PhantomData<BcPhi>: UnsafeUnpin,
PhantomData<BcProj>: UnsafeUnpin,
PhantomData<TableShape>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<LuauBytecodeType>: UnsafeUnpin,
PhantomData<TypedLocal>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<DebugLocal<'static>>: UnsafeUnpin,
PhantomData<(BcOp, u8)>: UnsafeUnpin,
impl UnwindSafe for BcFunctionwhere
RawVecInner: UnwindSafe,
*mut BcBlockEdge: UnwindSafe,
*mut BcOp: UnwindSafe,
&'static str: UnwindSafe,
HashMap<BcOp, u8, BcOpHash>: UnwindSafe,
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