Struct donet_core::parser::ast::Case
source · pub struct Case {
pub span: Span,
pub condition: Option<TypeValue>,
pub fields: Vec<NamedField>,
pub breaks: bool,
}
Expand description
Paired with the switch_case
production in the Context Free Grammar.
Fields§
§span: Span
§condition: Option<TypeValue>
§fields: Vec<NamedField>
§breaks: bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnwindSafe for Case
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
)