pub struct Node { /* private fields */ }
Expand description
A file stack node.
Historically, RGBDS stored locations as simple strings, which were extended to contain the the full “file stack” (included files, macro calls, etc.); however, object files grew very large, as the strings contained a lot of repetition.
To solve the bloat problem, file stack nodes were introduced in format v9 r5; they store each scope in a unique way, building a tree. However, scopes don’t store line numbers, since several definitions may occur per scope, but instead store the line number at which their parent scope was exited.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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