Struct yash_syntax::syntax::Switch
source · [−]pub struct Switch {
pub type: SwitchType,
pub condition: SwitchCondition,
pub word: Word,
}Expand description
Fields
type: SwitchTypeHow the value is substituted.
condition: SwitchConditionCondition that determines whether the value is substituted or not.
word: WordWord that substitutes the parameter value.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more