Struct ruby_prism::PreExecutionNode
source · pub struct PreExecutionNode<'pr> { /* private fields */ }
Expand description
Represents the use of the BEGIN
keyword.
BEGIN { foo }
^^^^^^^^^^^^^
Implementations§
source§impl<'pr> PreExecutionNode<'pr>
impl<'pr> PreExecutionNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements
param
sourcepub fn keyword_loc(&self) -> Location<'pr>
pub fn keyword_loc(&self) -> Location<'pr>
Returns the keyword_loc
param
sourcepub fn opening_loc(&self) -> Location<'pr>
pub fn opening_loc(&self) -> Location<'pr>
Returns the opening_loc
param
sourcepub fn closing_loc(&self) -> Location<'pr>
pub fn closing_loc(&self) -> Location<'pr>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for PreExecutionNode<'pr>
impl<'pr> !Send for PreExecutionNode<'pr>
impl<'pr> !Sync for PreExecutionNode<'pr>
impl<'pr> Unpin for PreExecutionNode<'pr>
impl<'pr> !UnwindSafe for PreExecutionNode<'pr>
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