Struct donet_core::parser::ast::Switch
source · pub struct Switch {
pub span: Span,
pub identifier: Option<String>,
pub key_parameter: ParameterField,
pub cases: Vec<Case>,
}
Expand description
Paired with the switch_type
production in the Context Free Grammar.
Fields§
§span: Span
§identifier: Option<String>
§key_parameter: ParameterField
§cases: Vec<Case>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Switch
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnwindSafe for Switch
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)