pub struct AST {
pub nodes: Vec<ASTNode>,
pub rodata_nodes: Vec<ASTNode>,
pub entry_label: Option<String>,
/* private fields */
}Fields§
§nodes: Vec<ASTNode>§rodata_nodes: Vec<ASTNode>§entry_label: Option<String>Implementations§
Source§impl AST
impl AST
pub fn new() -> Self
pub fn set_text_size(&mut self, text_size: u64)
pub fn set_rodata_size(&mut self, rodata_size: u64)
pub fn get_instruction_at_offset( &mut self, offset: u64, ) -> Option<&mut Instruction>
pub fn get_rodata_at_offset(&self, offset: u64) -> Option<&ROData>
pub fn build_program(&mut self) -> Result<ParseResult, Vec<CompileError>>
Auto Trait Implementations§
impl Freeze for AST
impl RefUnwindSafe for AST
impl Send for AST
impl Sync for AST
impl Unpin for AST
impl UnwindSafe for AST
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