#[repr(C)]pub struct pm_rescue_node {
pub base: pm_node_t,
pub keyword_loc: pm_location_t,
pub exceptions: pm_node_list,
pub operator_loc: pm_location_t,
pub reference: *mut pm_node,
pub then_keyword_loc: pm_location_t,
pub statements: *mut pm_statements_node,
pub subsequent: *mut pm_rescue_node,
}
Expand description
RescueNode
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.
Type: ::PM_RESCUE_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
keyword_loc: pm_location_t
RescueNode#keyword_loc
exceptions: pm_node_list
RescueNode#exceptions
operator_loc: pm_location_t
RescueNode#operator_loc
reference: *mut pm_node
RescueNode#reference
then_keyword_loc: pm_location_t
RescueNode#then_keyword_loc
statements: *mut pm_statements_node
RescueNode#statements
subsequent: *mut pm_rescue_node
RescueNode#subsequent
Trait Implementations§
Source§impl Clone for pm_rescue_node
impl Clone for pm_rescue_node
Source§fn clone(&self) -> pm_rescue_node
fn clone(&self) -> pm_rescue_node
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for pm_rescue_node
impl Debug for pm_rescue_node
Source§impl Default for pm_rescue_node
impl Default for pm_rescue_node
impl Copy for pm_rescue_node
Auto Trait Implementations§
impl Freeze for pm_rescue_node
impl RefUnwindSafe for pm_rescue_node
impl !Send for pm_rescue_node
impl !Sync for pm_rescue_node
impl Unpin for pm_rescue_node
impl UnwindSafe for pm_rescue_node
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