pub struct WhenClause {
pub condition: Expr,
pub result: Expr,
}Expand description
WHEN … THEN … part of a CASE: the condition is always a predicate
(the simple form’s operand = value lowering included).
Fields§
§condition: Expr§result: ExprTrait Implementations§
Source§impl Clone for WhenClause
impl Clone for WhenClause
Source§impl Debug for WhenClause
impl Debug for WhenClause
Source§impl PartialEq for WhenClause
impl PartialEq for WhenClause
impl StructuralPartialEq for WhenClause
Auto Trait Implementations§
impl Forget for WhenClause
impl Freeze for WhenClause
impl Move for WhenClause
impl RefUnwindSafe for WhenClause
impl Send for WhenClause
impl Sync for WhenClause
impl Unpin for WhenClause
impl UnsafeUnpin for WhenClause
impl UnwindSafe for WhenClause
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