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
impl StructuralPartialEq for Preexe
Auto Trait Implementations
impl RefUnwindSafe for Preexe
impl Send for Preexe
impl Sync for Preexe
impl Unpin for Preexe
impl UnwindSafe for Preexe
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more