pub enum TypedElseBranch {
Block(TypedBlock),
If(Box<TypedStmt>),
}Expand description
the else part of a TypedStmt::If: either a final { ... } block, or
another if (the boxed TypedStmt is always a TypedStmt::If) for an
else if chain. mirror of ast::ElseBranch.
Variants§
Block(TypedBlock)
else { ... }.
If(Box<TypedStmt>)
else if ... – the boxed statement is a TypedStmt::If.
Trait Implementations§
Source§impl Clone for TypedElseBranch
impl Clone for TypedElseBranch
Source§fn clone(&self) -> TypedElseBranch
fn clone(&self) -> TypedElseBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypedElseBranch
impl Debug for TypedElseBranch
Source§impl PartialEq for TypedElseBranch
impl PartialEq for TypedElseBranch
Source§fn eq(&self, other: &TypedElseBranch) -> bool
fn eq(&self, other: &TypedElseBranch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypedElseBranch
Auto Trait Implementations§
impl Freeze for TypedElseBranch
impl RefUnwindSafe for TypedElseBranch
impl Send for TypedElseBranch
impl Sync for TypedElseBranch
impl Unpin for TypedElseBranch
impl UnsafeUnpin for TypedElseBranch
impl UnwindSafe for TypedElseBranch
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