[][src]Struct lib_ruby_parser::nodes::RescueBody

pub struct RescueBody {
    pub exc_list: Option<Node>,
    pub exc_var: Option<Node>,
    pub body: Option<Node>,
    pub keyword_l: Range,
    pub assoc_l: Option<Range>,
    pub begin_l: Option<Range>,
    pub expression_l: Range,
}

Represents a single rescue handler (i.e. rescue E => e ...)

Fields

exc_list: Option<Node>

A list of exception classes

None if no classes specified (i.e. rescue => e; ... or just rescue; ...)

exc_var: Option<Node>

Variable that captures exception

None if no variable specified (i.e. rescue E; ... or just rescue; ... )

body: Option<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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.