pub struct ExceptHandlerExceptHandler<R = TextRange> {
pub range: R,
pub type_: Option<Box<Expr<R>>>,
pub name: Option<Identifier>,
pub body: Vec<Stmt<R>>,
}
Expand description
See also ExceptHandler
Fields§
§range: R
§type_: Option<Box<Expr<R>>>
§name: Option<Identifier>
§body: Vec<Stmt<R>>
Trait Implementations§
Source§impl<R> Clone for ExceptHandlerExceptHandler<R>where
R: Clone,
impl<R> Clone for ExceptHandlerExceptHandler<R>where
R: Clone,
Source§fn clone(&self) -> ExceptHandlerExceptHandler<R>
fn clone(&self) -> ExceptHandlerExceptHandler<R>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R> Debug for ExceptHandlerExceptHandler<R>where
R: Debug,
impl<R> Debug for ExceptHandlerExceptHandler<R>where
R: Debug,
Source§impl<T, U> Foldable<T, U> for ExceptHandlerExceptHandler<T>
impl<T, U> Foldable<T, U> for ExceptHandlerExceptHandler<T>
Source§impl<R> From<ExceptHandlerExceptHandler<R>> for Ast<R>
impl<R> From<ExceptHandlerExceptHandler<R>> for Ast<R>
Source§fn from(payload: ExceptHandlerExceptHandler<R>) -> Ast<R>
fn from(payload: ExceptHandlerExceptHandler<R>) -> Ast<R>
Converts to this type from the input type.
Source§impl<R> From<ExceptHandlerExceptHandler<R>> for ExceptHandler<R>
impl<R> From<ExceptHandlerExceptHandler<R>> for ExceptHandler<R>
Source§fn from(payload: ExceptHandlerExceptHandler<R>) -> ExceptHandler<R>
fn from(payload: ExceptHandlerExceptHandler<R>) -> ExceptHandler<R>
Converts to this type from the input type.
Source§impl Located for ExceptHandlerExceptHandler<SourceRange>
impl Located for ExceptHandlerExceptHandler<SourceRange>
fn range(&self) -> SourceRange
fn location(&self) -> SourceLocation
fn end_location(&self) -> Option<SourceLocation>
Source§impl LocatedMut for ExceptHandlerExceptHandler<SourceRange>
impl LocatedMut for ExceptHandlerExceptHandler<SourceRange>
fn range_mut(&mut self) -> &mut SourceRange
Source§impl<R> Node for ExceptHandlerExceptHandler<R>
impl<R> Node for ExceptHandlerExceptHandler<R>
Source§impl<R> PartialEq for ExceptHandlerExceptHandler<R>where
R: PartialEq,
impl<R> PartialEq for ExceptHandlerExceptHandler<R>where
R: PartialEq,
Source§fn eq(&self, other: &ExceptHandlerExceptHandler<R>) -> bool
fn eq(&self, other: &ExceptHandlerExceptHandler<R>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Ranged for ExceptHandlerExceptHandler
impl Ranged for ExceptHandlerExceptHandler
impl<R> StructuralPartialEq for ExceptHandlerExceptHandler<R>
Auto Trait Implementations§
impl<R> Freeze for ExceptHandlerExceptHandler<R>where
R: Freeze,
impl<R> RefUnwindSafe for ExceptHandlerExceptHandler<R>where
R: RefUnwindSafe,
impl<R> Send for ExceptHandlerExceptHandler<R>where
R: Send,
impl<R> Sync for ExceptHandlerExceptHandler<R>where
R: Sync,
impl<R> Unpin for ExceptHandlerExceptHandler<R>where
R: Unpin,
impl<R> UnwindSafe for ExceptHandlerExceptHandler<R>where
R: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more