Enum ezno_parser::statements::SwitchBranch
source · pub enum SwitchBranch {
Default(Vec<StatementOrDeclaration>),
Case(Expression, Vec<StatementOrDeclaration>),
}Variants§
Default(Vec<StatementOrDeclaration>)
Case(Expression, Vec<StatementOrDeclaration>)
Trait Implementations§
source§impl Clone for SwitchBranch
impl Clone for SwitchBranch
source§fn clone(&self) -> SwitchBranch
fn clone(&self) -> SwitchBranch
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 Debug for SwitchBranch
impl Debug for SwitchBranch
source§impl PartialEq for SwitchBranch
impl PartialEq for SwitchBranch
source§fn eq(&self, other: &SwitchBranch) -> bool
fn eq(&self, other: &SwitchBranch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SelfRustTokenize for SwitchBranch
impl SelfRustTokenize for SwitchBranch
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
source§impl Serialize for SwitchBranch
impl Serialize for SwitchBranch
source§impl Visitable for SwitchBranch
impl Visitable for SwitchBranch
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain> )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain> )
impl StructuralPartialEq for SwitchBranch
Auto Trait Implementations§
impl RefUnwindSafe for SwitchBranch
impl Send for SwitchBranch
impl Sync for SwitchBranch
impl Unpin for SwitchBranch
impl UnwindSafe for SwitchBranch
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