Struct ezno_parser::visiting::VisitOptions
source · pub struct VisitOptions {
pub reverse_statements: bool,
pub visit_nested_blocks: bool,
}
Expand description
Options for behavior when visiting AST. Customizable behavior is important for analysis
Fields§
§reverse_statements: bool
Visits statements in reverse, e.g
const x = 2;
const y = 3;
If reverse_statements
is true, const y = 3
will be visited before const x = 2
visit_nested_blocks: bool
Will not visit anything under nested blocks, functions etc
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VisitOptions
impl RefUnwindSafe for VisitOptions
impl Send for VisitOptions
impl Sync for VisitOptions
impl Unpin for VisitOptions
impl UnwindSafe for VisitOptions
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