Struct ruby_prism::RescueNode
source · pub struct RescueNode<'pr> { /* private fields */ }
Expand description
Represents a rescue statement.
begin
rescue Foo, *splat, Bar => ex
foo
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
end
Foo, *splat, Bar
are in the exceptions
field. ex
is in the reference
field.
Implementations§
source§impl<'pr> RescueNode<'pr>
impl<'pr> RescueNode<'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 keyword_loc(&self) -> Location<'pr>
pub fn keyword_loc(&self) -> Location<'pr>
Returns the keyword_loc
param
sourcepub fn exceptions(&self) -> NodeList<'pr>
pub fn exceptions(&self) -> NodeList<'pr>
Returns the exceptions
param
sourcepub fn operator_loc(&self) -> Option<Location<'pr>>
pub fn operator_loc(&self) -> Option<Location<'pr>>
Returns the operator_loc
param
sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements
param
sourcepub fn subsequent(&self) -> Option<RescueNode<'pr>>
pub fn subsequent(&self) -> Option<RescueNode<'pr>>
Returns the subsequent
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for RescueNode<'pr>
impl<'pr> !Send for RescueNode<'pr>
impl<'pr> !Sync for RescueNode<'pr>
impl<'pr> Unpin for RescueNode<'pr>
impl<'pr> !UnwindSafe for RescueNode<'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