Struct lib_ruby_parser::nodes::RescueBody [−][src]
#[repr(C)]pub struct RescueBody { pub exc_list: MaybePtr<Node>, pub exc_var: MaybePtr<Node>, pub body: MaybePtr<Node>, pub keyword_l: Loc, pub assoc_l: MaybeLoc, pub begin_l: MaybeLoc, pub expression_l: Loc, }
Represents a single rescue handler (i.e. rescue E => e ...)
Fields
exc_list: MaybePtr<Node>A list of exception classes
None if no classes specified (i.e. rescue => e; ... or just rescue; ...)
exc_var: MaybePtr<Node>Variable that captures exception
None if no variable specified (i.e. rescue E; ... or just rescue; ... )
body: MaybePtr<Node>Body of the handler
keyword_l: LocLocation of the rescue keyword
begin; 1; rescue E => e; 2; end
~~~~~~
assoc_l: MaybeLocLocation of the => operator
begin; 1; rescue E => e; 2; end
~~
None if exception is not captured.
begin_l: MaybeLocLocation 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
impl Clone for RescueBody[src]
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]
fn eq(&self, other: &RescueBody) -> bool[src]
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>,