pub struct SwitchStatement {
pub discriminant: Expression,
pub cases: Vec<SwitchCase>,
}
Fields
discriminant: Expression
cases: Vec<SwitchCase>
Trait Implementations
sourceimpl Clone for SwitchStatement
impl Clone for SwitchStatement
sourcefn clone(&self) -> SwitchStatement
fn clone(&self) -> SwitchStatement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwitchStatement
impl Debug for SwitchStatement
sourceimpl Interpretable for SwitchStatement
impl Interpretable for SwitchStatement
sourceimpl PartialEq<SwitchStatement> for SwitchStatement
impl PartialEq<SwitchStatement> for SwitchStatement
sourcefn eq(&self, other: &SwitchStatement) -> bool
fn eq(&self, other: &SwitchStatement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwitchStatement) -> bool
fn ne(&self, other: &SwitchStatement) -> bool
This method tests for !=
.
impl Eq for SwitchStatement
impl StructuralEq for SwitchStatement
impl StructuralPartialEq for SwitchStatement
Auto Trait Implementations
impl RefUnwindSafe for SwitchStatement
impl !Send for SwitchStatement
impl !Sync for SwitchStatement
impl Unpin for SwitchStatement
impl UnwindSafe for SwitchStatement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more