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