pub struct SwitchCase {
pub test: Option<Expression>,
pub consequent: Vec<Statement>,
}
Fields
test: Option<Expression>
consequent: Vec<Statement>
Trait Implementations
sourceimpl Clone for SwitchCase
impl Clone for SwitchCase
sourcefn clone(&self) -> SwitchCase
fn clone(&self) -> SwitchCase
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 SwitchCase
impl Debug for SwitchCase
sourceimpl PartialEq<SwitchCase> for SwitchCase
impl PartialEq<SwitchCase> for SwitchCase
sourcefn eq(&self, other: &SwitchCase) -> bool
fn eq(&self, other: &SwitchCase) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SwitchCase) -> bool
fn ne(&self, other: &SwitchCase) -> bool
This method tests for !=
.
impl Eq for SwitchCase
impl StructuralEq for SwitchCase
impl StructuralPartialEq for SwitchCase
Auto Trait Implementations
impl RefUnwindSafe for SwitchCase
impl !Send for SwitchCase
impl !Sync for SwitchCase
impl Unpin for SwitchCase
impl UnwindSafe for SwitchCase
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