[−][src]Struct lib_ruby_parser::nodes::Rescue
Represents a rescue
block
Fields
body: Option<Box<Node>>
Body of the block that is wrapped into rescue
(i.e. the part that may throw an error)
rescue_bodies: Vec<Node>
A list of rescue
handlers (see RescueBody
node)
else_: Option<Box<Node>>
Else branch.
None
if there's no else
branch
else_l: Option<Range>
Location of the else
keyword
begin; 1; rescue StandardError => e; 2; else; 3; end
~~~~
None
if there's no else
branch
expression_l: Range
Location of the full expression
begin; 1; rescue StandardError => e; 2; else; 3; end
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: begin/end
keywords belong to KwBegin
node
Trait Implementations
impl Clone for Rescue
[src][+]
impl Debug for Rescue
[src][+]
impl PartialEq<Rescue> for Rescue
[src][+]
impl StructuralPartialEq for Rescue
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rescue
impl Send for Rescue
impl Sync for Rescue
impl Unpin for Rescue
impl UnwindSafe for Rescue
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>,