Struct lib_ruby_parser::nodes::Preexe
source · #[repr(C)]pub struct Preexe {
pub body: Option<Box<Node>>,
pub keyword_l: Loc,
pub begin_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents BEGIN { ... }
statement
Fields§
§body: Option<Box<Node>>
Body of the block
keyword_l: Loc
Location of the BEGIN
keyword
BEGIN { 42 }
~~~~~
begin_l: Loc
Location of the open parenthesis
BEGIN { 42 }
~
end_l: Loc
Location of the closing parenthesis
BEGIN { 42 }
~
expression_l: Loc
Location of the full expression
BEGIN { 42 }
~~~~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Preexe
impl PartialEq for Preexe
impl StructuralPartialEq for Preexe
Auto Trait Implementations§
impl Freeze for Preexe
impl RefUnwindSafe for Preexe
impl Send for Preexe
impl Sync for Preexe
impl Unpin for Preexe
impl UnwindSafe for Preexe
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