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>>
Trait Implementations§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more