pub enum Expr {
Show 23 variants
Tuple(ExprTuple),
Snapshot(ExprSnapshot),
Desnap(ExprDesnap),
Assignment(ExprAssignment),
LogicalOperator(ExprLogicalOperator),
Block(ExprBlock),
Loop(ExprLoop),
While(ExprWhile),
For(ExprFor),
FunctionCall(ExprFunctionCall),
Match(ExprMatch),
If(ExprIf),
Var(ExprVar),
Literal(ExprLiteral),
StringLiteral(ExprStringLiteral),
MemberAccess(ExprMemberAccess),
StructCtor(ExprStructCtor),
EnumVariantCtor(ExprEnumVariantCtor),
PropagateError(ExprPropagateError),
Constant(ExprConstant),
FixedSizeArray(ExprFixedSizeArray),
ExprClosure(ExprClosure),
Missing(ExprMissing),
}
Variants§
Tuple(ExprTuple)
Snapshot(ExprSnapshot)
Desnap(ExprDesnap)
Assignment(ExprAssignment)
LogicalOperator(ExprLogicalOperator)
Block(ExprBlock)
Loop(ExprLoop)
While(ExprWhile)
For(ExprFor)
FunctionCall(ExprFunctionCall)
Match(ExprMatch)
If(ExprIf)
Var(ExprVar)
Literal(ExprLiteral)
StringLiteral(ExprStringLiteral)
MemberAccess(ExprMemberAccess)
StructCtor(ExprStructCtor)
EnumVariantCtor(ExprEnumVariantCtor)
PropagateError(ExprPropagateError)
Constant(ExprConstant)
FixedSizeArray(ExprFixedSizeArray)
ExprClosure(ExprClosure)
Missing(ExprMissing)
Implementations§
source§impl Expr
impl Expr
pub fn ty(&self) -> TypeId
pub fn stable_ptr(&self) -> ExprPtr
pub fn as_member_path(&self) -> Option<ExprVarMemberPath>
Trait Implementations§
source§impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for Expr
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for Expr
source§impl From<&Expr> for SyntaxStablePtrId
impl From<&Expr> for SyntaxStablePtrId
source§impl<T: SemanticRewriter<ExprTuple, Error> + SemanticRewriter<ExprSnapshot, Error> + SemanticRewriter<ExprDesnap, Error> + SemanticRewriter<ExprAssignment, Error> + SemanticRewriter<ExprLogicalOperator, Error> + SemanticRewriter<ExprBlock, Error> + SemanticRewriter<ExprLoop, Error> + SemanticRewriter<ExprWhile, Error> + SemanticRewriter<ExprFor, Error> + SemanticRewriter<ExprFunctionCall, Error> + SemanticRewriter<ExprMatch, Error> + SemanticRewriter<ExprIf, Error> + SemanticRewriter<ExprVar, Error> + SemanticRewriter<ExprLiteral, Error> + SemanticRewriter<ExprStringLiteral, Error> + SemanticRewriter<ExprMemberAccess, Error> + SemanticRewriter<ExprStructCtor, Error> + SemanticRewriter<ExprEnumVariantCtor, Error> + SemanticRewriter<ExprPropagateError, Error> + SemanticRewriter<ExprConstant, Error> + SemanticRewriter<ExprFixedSizeArray, Error> + SemanticRewriter<ExprClosure, Error> + SemanticRewriter<ExprMissing, Error>, Error> SemanticObject<T, Error> for Expr
impl<T: SemanticRewriter<ExprTuple, Error> + SemanticRewriter<ExprSnapshot, Error> + SemanticRewriter<ExprDesnap, Error> + SemanticRewriter<ExprAssignment, Error> + SemanticRewriter<ExprLogicalOperator, Error> + SemanticRewriter<ExprBlock, Error> + SemanticRewriter<ExprLoop, Error> + SemanticRewriter<ExprWhile, Error> + SemanticRewriter<ExprFor, Error> + SemanticRewriter<ExprFunctionCall, Error> + SemanticRewriter<ExprMatch, Error> + SemanticRewriter<ExprIf, Error> + SemanticRewriter<ExprVar, Error> + SemanticRewriter<ExprLiteral, Error> + SemanticRewriter<ExprStringLiteral, Error> + SemanticRewriter<ExprMemberAccess, Error> + SemanticRewriter<ExprStructCtor, Error> + SemanticRewriter<ExprEnumVariantCtor, Error> + SemanticRewriter<ExprPropagateError, Error> + SemanticRewriter<ExprConstant, Error> + SemanticRewriter<ExprFixedSizeArray, Error> + SemanticRewriter<ExprClosure, Error> + SemanticRewriter<ExprMissing, Error>, Error> SemanticObject<T, Error> for Expr
fn default_rewrite(&mut self, rewriter: &mut T) -> Result<RewriteResult, Error>
impl Eq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations§
impl Freeze for Expr
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more