pub struct CaseExpr {
pub cases: Vec<WhenThen>,
pub else_expr: Box<Expression>,
pub datatype: DataType,
}Fields§
§cases: Vec<WhenThen>§else_expr: Box<Expression>§datatype: DataTypeImplementations§
Trait Implementations§
Source§impl ContextDisplay for CaseExpr
impl ContextDisplay for CaseExpr
Source§fn fmt_using_context(
&self,
mode: ContextDisplayMode<'_>,
f: &mut Formatter<'_>,
) -> Result
fn fmt_using_context( &self, mode: ContextDisplayMode<'_>, f: &mut Formatter<'_>, ) -> Result
Format self by enriching the string output with information in the bind
context if it’s provided. Read more
impl Eq for CaseExpr
Source§impl From<CaseExpr> for Expression
impl From<CaseExpr> for Expression
impl StructuralPartialEq for CaseExpr
Auto Trait Implementations§
impl !RefUnwindSafe for CaseExpr
impl !UnwindSafe for CaseExpr
impl Freeze for CaseExpr
impl Send for CaseExpr
impl Sync for CaseExpr
impl Unpin for CaseExpr
impl UnsafeUnpin for CaseExpr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.