pub struct BeginNode<'pr> { /* private fields */ }
Expand description
Represents a begin statement.
begin
foo
end
^^^^^
Implementations§
Source§impl<'pr> BeginNode<'pr>
impl<'pr> BeginNode<'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 begin_keyword_loc(&self) -> Option<Location<'pr>>
pub fn begin_keyword_loc(&self) -> Option<Location<'pr>>
Returns the begin_keyword_loc
param
Sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements
param
Sourcepub fn rescue_clause(&self) -> Option<RescueNode<'pr>>
pub fn rescue_clause(&self) -> Option<RescueNode<'pr>>
Returns the rescue_clause
param
Sourcepub fn else_clause(&self) -> Option<ElseNode<'pr>>
pub fn else_clause(&self) -> Option<ElseNode<'pr>>
Returns the else_clause
param
Sourcepub fn ensure_clause(&self) -> Option<EnsureNode<'pr>>
pub fn ensure_clause(&self) -> Option<EnsureNode<'pr>>
Returns the ensure_clause
param
Sourcepub fn end_keyword_loc(&self) -> Option<Location<'pr>>
pub fn end_keyword_loc(&self) -> Option<Location<'pr>>
Returns the end_keyword_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> Freeze for BeginNode<'pr>
impl<'pr> RefUnwindSafe for BeginNode<'pr>
impl<'pr> !Send for BeginNode<'pr>
impl<'pr> !Sync for BeginNode<'pr>
impl<'pr> Unpin for BeginNode<'pr>
impl<'pr> !UnwindSafe for BeginNode<'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