pub struct ExprIsVariant {
pub expr: Box<Expr>,
pub variant: VariantId,
}Expand description
Tests whether an expression evaluates to a specific enum variant.
This is an application-level check that abstracts over the storage format (unit enums stored as bare I64 vs data-carrying enums stored as Records). The lowerer translates this into the appropriate DB-level comparison.
Fields§
§expr: Box<Expr>Expression evaluating to an enum value.
variant: VariantIdIdentifies the variant to check against.
Trait Implementations§
Source§impl Clone for ExprIsVariant
impl Clone for ExprIsVariant
Source§fn clone(&self) -> ExprIsVariant
fn clone(&self) -> ExprIsVariant
Returns a duplicate of the value. Read more
1.0.0 · 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 ExprIsVariant
impl Debug for ExprIsVariant
Source§impl From<ExprIsVariant> for Expr
impl From<ExprIsVariant> for Expr
Source§fn from(value: ExprIsVariant) -> Self
fn from(value: ExprIsVariant) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExprIsVariant
impl PartialEq for ExprIsVariant
impl StructuralPartialEq for ExprIsVariant
Auto Trait Implementations§
impl Freeze for ExprIsVariant
impl RefUnwindSafe for ExprIsVariant
impl Send for ExprIsVariant
impl Sync for ExprIsVariant
impl Unpin for ExprIsVariant
impl UnwindSafe for ExprIsVariant
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