pub struct SwitchStatement {
pub condition: Expression,
pub cases: Vec<Case>,
}Fields§
§condition: Expression§cases: Vec<Case>Implementations§
Source§impl SwitchStatement
impl SwitchStatement
pub fn new(condition: Expression) -> SwitchStatement
pub fn is_valid(&self) -> bool
Trait Implementations§
Source§impl Clone for SwitchStatement
impl Clone for SwitchStatement
Source§fn clone(&self) -> SwitchStatement
fn clone(&self) -> SwitchStatement
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 SwitchStatement
impl Debug for SwitchStatement
Source§impl Default for SwitchStatement
impl Default for SwitchStatement
Source§fn default() -> SwitchStatement
fn default() -> SwitchStatement
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SwitchStatement
impl RefUnwindSafe for SwitchStatement
impl Send for SwitchStatement
impl Sync for SwitchStatement
impl Unpin for SwitchStatement
impl UnwindSafe for SwitchStatement
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