pub struct CaseAlternative {
pub when: Expression,
pub then: Expression,
}Expand description
A single WHEN … THEN … branch inside a CASE expression.
Fields§
§when: ExpressionThe WHEN expression (a value for simple CASE, or a condition for searched CASE).
then: ExpressionThe THEN expression returned when WHEN matches.
Trait Implementations§
Source§impl Clone for CaseAlternative
impl Clone for CaseAlternative
Source§fn clone(&self) -> CaseAlternative
fn clone(&self) -> CaseAlternative
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CaseAlternative
impl Debug for CaseAlternative
Source§impl PartialEq for CaseAlternative
impl PartialEq for CaseAlternative
impl StructuralPartialEq for CaseAlternative
Auto Trait Implementations§
impl Freeze for CaseAlternative
impl RefUnwindSafe for CaseAlternative
impl Send for CaseAlternative
impl Sync for CaseAlternative
impl Unpin for CaseAlternative
impl UnsafeUnpin for CaseAlternative
impl UnwindSafe for CaseAlternative
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