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§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