Struct yash_syntax::syntax::Switch
source · pub struct Switch {
pub type: SwitchType,
pub condition: SwitchCondition,
pub word: Word,
}
Expand description
Fields§
§type: SwitchType
How the value is substituted.
condition: SwitchCondition
Condition that determines whether the value is substituted or not.
word: Word
Word that substitutes the parameter value.
Trait Implementations§
source§impl PartialEq for Switch
impl PartialEq for Switch
impl Eq for Switch
impl StructuralEq for Switch
impl StructuralPartialEq for Switch
Auto Trait Implementations§
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