[−][src]Struct lib_ruby_parser::nodes::RescueBody
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]
pub fn clone(&self) -> RescueBody
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RescueBody
[src]
impl PartialEq<RescueBody> for RescueBody
[src]
pub fn eq(&self, other: &RescueBody) -> bool
[src]
pub fn ne(&self, other: &RescueBody) -> bool
[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,