Struct libcst_native::ExceptHandler
source · pub struct ExceptHandler<'a> {
pub body: Suite<'a>,
pub type: Option<Expression<'a>>,
pub name: Option<AsName<'a>>,
pub leading_lines: Vec<EmptyLine<'a>>,
pub whitespace_after_except: SimpleWhitespace<'a>,
pub whitespace_before_colon: SimpleWhitespace<'a>,
}
Fields§
§body: Suite<'a>
§type: Option<Expression<'a>>
§name: Option<AsName<'a>>
§leading_lines: Vec<EmptyLine<'a>>
§whitespace_after_except: SimpleWhitespace<'a>
§whitespace_before_colon: SimpleWhitespace<'a>
Trait Implementations§
source§impl<'a> Clone for ExceptHandler<'a>
impl<'a> Clone for ExceptHandler<'a>
source§fn clone(&self) -> ExceptHandler<'a>
fn clone(&self) -> ExceptHandler<'a>
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<'a> Codegen<'a> for ExceptHandler<'a>
impl<'a> Codegen<'a> for ExceptHandler<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
source§impl<'a> Debug for ExceptHandler<'a>
impl<'a> Debug for ExceptHandler<'a>
source§impl<'a> PartialEq for ExceptHandler<'a>
impl<'a> PartialEq for ExceptHandler<'a>
source§fn eq(&self, other: &ExceptHandler<'a>) -> bool
fn eq(&self, other: &ExceptHandler<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for ExceptHandler<'a>
impl<'a> StructuralPartialEq for ExceptHandler<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ExceptHandler<'a>
impl<'a> Send for ExceptHandler<'a>
impl<'a> Sync for ExceptHandler<'a>
impl<'a> Unpin for ExceptHandler<'a>
impl<'a> UnwindSafe for ExceptHandler<'a>
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