Struct ruby_prism::RescueModifierNode
source · pub struct RescueModifierNode<'pr> { /* private fields */ }
Expand description
Represents an expression modified with a rescue.
foo rescue nil
^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> RescueModifierNode<'pr>
impl<'pr> RescueModifierNode<'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 expression(&self) -> Node<'pr>
pub fn expression(&self) -> Node<'pr>
Returns the expression
param
sourcepub fn keyword_loc(&self) -> Location<'pr>
pub fn keyword_loc(&self) -> Location<'pr>
Returns the keyword_loc
param
sourcepub fn rescue_expression(&self) -> Node<'pr>
pub fn rescue_expression(&self) -> Node<'pr>
Returns the rescue_expression
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for RescueModifierNode<'pr>
impl<'pr> !Send for RescueModifierNode<'pr>
impl<'pr> !Sync for RescueModifierNode<'pr>
impl<'pr> Unpin for RescueModifierNode<'pr>
impl<'pr> !UnwindSafe for RescueModifierNode<'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