Struct lib_ruby_parser::nodes::RescueBody [−][src]
#[repr(C)]pub struct RescueBody { pub exc_list: Option<Box<Node>>, pub exc_var: Option<Box<Node>>, pub body: Option<Box<Node>>, pub keyword_l: Loc, pub assoc_l: Option<Loc>, pub begin_l: Option<Loc>, pub expression_l: Loc, }
Expand description
Represents a single rescue handler (i.e. rescue E => e ...)
Fields
exc_list: Option<Box<Node>>A list of exception classes
None if no classes specified (i.e. rescue => e; ... or just rescue; ...)
exc_var: Option<Box<Node>>Variable that captures exception
None if no variable specified (i.e. rescue E; ... or just rescue; ... )
body: Option<Box<Node>>Body of the handler
keyword_l: LocLocation of the rescue keyword
begin; 1; rescue E => e; 2; end
~~~~~~
assoc_l: Option<Loc>Location of the => operator
begin; 1; rescue E => e; 2; end
~~
None if exception is not captured.
begin_l: Option<Loc>Location of the then keyword
begin; 1; rescue E => e then; 2; end
~~~~
then is optional, so begin_l can be None
expression_l: LocLocation of the full expression
begin; 1; rescue E => e then; 2; end
~~~~~~~~~~~~~~~~~~~~~
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for RescueBodyimpl Send for RescueBodyimpl Sync for RescueBodyimpl Unpin for RescueBodyimpl UnwindSafe for RescueBodyBlanket Implementations
Mutably borrows from an owned value. Read more