[−][src]Struct lib_ruby_parser::nodes::RescueBody
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: Range
Location of the rescue
keyword
begin; 1; rescue E => e; 2; end
~~~~~~
assoc_l: Option<Range>
Location of the =>
operator
begin; 1; rescue E => e; 2; end
~~
None
if exception is not captured.
begin_l: Option<Range>
Location of the then
keyword
begin; 1; rescue E => e then; 2; end
~~~~
then
is optional, so begin_l
can be None
expression_l: Range
Location of the full expression
begin; 1; rescue E => e then; 2; end
~~~~~~~~~~~~~~~~~~~~~
Trait Implementations
impl Clone for RescueBody
[src][+]
impl Debug for RescueBody
[src][+]
impl PartialEq<RescueBody> for RescueBody
[src][+]
impl StructuralPartialEq for RescueBody
[src]
Auto Trait Implementations
impl RefUnwindSafe for RescueBody
impl Send for RescueBody
impl Sync for RescueBody
impl Unpin for RescueBody
impl UnwindSafe for RescueBody
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,