pub struct Proto {Show 14 fields
pub max_stack_size: u8,
pub num_params: u8,
pub num_upvalues: u8,
pub is_vararg: u8,
pub flags: u8,
pub type_info: TypeInfo,
pub code: Vec<Instruction>,
pub constants: Vec<Constant>,
pub child_protos: Vec<u32>,
pub line_defined: u32,
pub debug_name: u32,
pub line_info: Option<LineInfo>,
pub debug_info: Option<DebugInfo>,
pub feedback_slots: Vec<FeedbackSlot>,
}Expand description
One decoded proto.
Fields§
§max_stack_size: u8Maximum stack size.
num_params: u8Fixed parameter count.
num_upvalues: u8Upvalue count.
is_vararg: u8Vararg flag.
flags: u8Proto flags.
type_info: TypeInfoType-info section.
code: Vec<Instruction>Decoded instructions in word order.
constants: Vec<Constant>Constant table.
child_protos: Vec<u32>Child proto ids.
line_defined: u32Source line where this proto is defined.
debug_name: u32One-based string-table id of debug name, or zero.
line_info: Option<LineInfo>Encoded line-info block.
debug_info: Option<DebugInfo>Local and upvalue debug info.
feedback_slots: Vec<FeedbackSlot>Feedback slots, present in version 11 chunks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proto
impl<'de> Deserialize<'de> for Proto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Proto
Auto Trait Implementations§
impl Freeze for Proto
impl RefUnwindSafe for Proto
impl Send for Proto
impl Sync for Proto
impl Unpin for Proto
impl UnsafeUnpin for Proto
impl UnwindSafe for Proto
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