pub struct CaseStatement {
pub selector: Box<AstNode>,
pub case_blocks: Vec<ConditionalBlock>,
pub else_block: Vec<AstNode>,
pub end_location: SourceLocation,
}Fields§
§selector: Box<AstNode>§case_blocks: Vec<ConditionalBlock>§else_block: Vec<AstNode>§end_location: SourceLocationTrait Implementations§
Source§impl Clone for CaseStatement
impl Clone for CaseStatement
Source§fn clone(&self) -> CaseStatement
fn clone(&self) -> CaseStatement
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 CaseStatement
impl Debug for CaseStatement
Source§impl<'de> Deserialize<'de> for CaseStatementwhere
'de: 'static,
impl<'de> Deserialize<'de> for CaseStatementwhere
'de: 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CaseStatement
impl PartialEq for CaseStatement
Source§fn eq(&self, other: &CaseStatement) -> bool
fn eq(&self, other: &CaseStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CaseStatement
impl Serialize for CaseStatement
impl StructuralPartialEq for CaseStatement
Auto Trait Implementations§
impl Freeze for CaseStatement
impl RefUnwindSafe for CaseStatement
impl Send for CaseStatement
impl Sync for CaseStatement
impl Unpin for CaseStatement
impl UnsafeUnpin for CaseStatement
impl UnwindSafe for CaseStatement
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