pub struct Arm {
pub when: ExprRef,
pub then: ExprRef,
}Expand description
One WHEN/THEN pair of a Expr::Case.
Fields§
§when: ExprRefThe condition.
then: ExprRefThe result if the condition is true.
Trait Implementations§
impl Copy for Arm
impl Eq for Arm
impl StructuralPartialEq for Arm
Auto Trait Implementations§
impl Freeze for Arm
impl RefUnwindSafe for Arm
impl Send for Arm
impl Sync for Arm
impl Unpin for Arm
impl UnsafeUnpin for Arm
impl UnwindSafe for Arm
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