pub enum Expr {
Show 37 variants This(ThisExpr), Array(ArrayLit), Object(ObjectLit), Fn(FnExpr), Unary(UnaryExpr), Update(UpdateExpr), Bin(BinExpr), Assign(AssignExpr), Member(MemberExpr), SuperProp(SuperPropExpr), Cond(CondExpr), Call(CallExpr), New(NewExpr), Seq(SeqExpr), Ident(Ident), Lit(Lit), Tpl(Tpl), TaggedTpl(TaggedTpl), Arrow(ArrowExpr), Class(ClassExpr), Yield(YieldExpr), MetaProp(MetaPropExpr), Await(AwaitExpr), Paren(ParenExpr), JSXMember(JSXMemberExpr), JSXNamespacedName(JSXNamespacedName), JSXEmpty(JSXEmptyExpr), JSXElement(Box<JSXElement, Global>), JSXFragment(JSXFragment), TsTypeAssertion(TsTypeAssertion), TsConstAssertion(TsConstAssertion), TsNonNull(TsNonNullExpr), TsAs(TsAsExpr), TsInstantiation(TsInstantiation), PrivateName(PrivateName), OptChain(OptChainExpr), Invalid(Invalid),
}
Available on crate feature visit only.

Variants

This(ThisExpr)

Array(ArrayLit)

Object(ObjectLit)

Fn(FnExpr)

Unary(UnaryExpr)

Update(UpdateExpr)

++v, --v, v++, v--

Bin(BinExpr)

Assign(AssignExpr)

Member(MemberExpr)

A member expression. If computed is true, the node corresponds to a computed (a[b]) member expression and property is an Expression. If computed is false, the node corresponds to a static (a.b) member expression and property is an Identifier.

SuperProp(SuperPropExpr)

Cond(CondExpr)

true ? ‘a’ : ‘b’

Call(CallExpr)

New(NewExpr)

new Cat()

Seq(SeqExpr)

Ident(Ident)

Lit(Lit)

Tpl(Tpl)

TaggedTpl(TaggedTpl)

Arrow(ArrowExpr)

Class(ClassExpr)

Yield(YieldExpr)

MetaProp(MetaPropExpr)

Await(AwaitExpr)

Paren(ParenExpr)

JSXMember(JSXMemberExpr)

JSXNamespacedName(JSXNamespacedName)

JSXEmpty(JSXEmptyExpr)

JSXElement(Box<JSXElement, Global>)

JSXFragment(JSXFragment)

TsTypeAssertion(TsTypeAssertion)

TsConstAssertion(TsConstAssertion)

TsNonNull(TsNonNullExpr)

TsAs(TsAsExpr)

TsInstantiation(TsInstantiation)

PrivateName(PrivateName)

OptChain(OptChainExpr)

Invalid(Invalid)

Implementations

Available on crate feature ast only.

Returns true if self is of variant This.

Available on crate feature ast only.

Returns Some if self is a reference of variant This, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant This, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of This.

Panics

Panics if the value is not This, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant This, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Array.

Available on crate feature ast only.

Returns Some if self is a reference of variant Array, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Array, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Array.

Panics

Panics if the value is not Array, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Array, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Object.

Available on crate feature ast only.

Returns Some if self is a reference of variant Object, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Object, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Object.

Panics

Panics if the value is not Object, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Object, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Fn.

Available on crate feature ast only.

Returns Some if self is a reference of variant Fn, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Fn, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Fn.

Panics

Panics if the value is not Fn, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Fn, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Unary.

Available on crate feature ast only.

Returns Some if self is a reference of variant Unary, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Unary, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Unary.

Panics

Panics if the value is not Unary, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Unary, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Update.

Available on crate feature ast only.

Returns Some if self is a reference of variant Update, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Update, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Update.

Panics

Panics if the value is not Update, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Update, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Bin.

Available on crate feature ast only.

Returns Some if self is a reference of variant Bin, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Bin, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Bin.

Panics

Panics if the value is not Bin, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Bin, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Assign.

Available on crate feature ast only.

Returns Some if self is a reference of variant Assign, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Assign, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Assign.

Panics

Panics if the value is not Assign, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Assign, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Member.

Available on crate feature ast only.

Returns Some if self is a reference of variant Member, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Member, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Member.

Panics

Panics if the value is not Member, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Member, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant SuperProp.

Available on crate feature ast only.

Returns Some if self is a reference of variant SuperProp, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant SuperProp, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of SuperProp.

Panics

Panics if the value is not SuperProp, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant SuperProp, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Cond.

Available on crate feature ast only.

Returns Some if self is a reference of variant Cond, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Cond, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Cond.

Panics

Panics if the value is not Cond, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Cond, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Call.

Available on crate feature ast only.

Returns Some if self is a reference of variant Call, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Call, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Call.

Panics

Panics if the value is not Call, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Call, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant New.

Available on crate feature ast only.

Returns Some if self is a reference of variant New, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant New, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of New.

Panics

Panics if the value is not New, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant New, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Seq.

Available on crate feature ast only.

Returns Some if self is a reference of variant Seq, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Seq, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Seq.

Panics

Panics if the value is not Seq, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Seq, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Ident.

Available on crate feature ast only.

Returns Some if self is a reference of variant Ident, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Ident, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Ident.

Panics

Panics if the value is not Ident, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Ident, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Lit.

Available on crate feature ast only.

Returns Some if self is a reference of variant Lit, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Lit, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Lit.

Panics

Panics if the value is not Lit, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Lit, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Tpl.

Available on crate feature ast only.

Returns Some if self is a reference of variant Tpl, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Tpl, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Tpl.

Panics

Panics if the value is not Tpl, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Tpl, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TaggedTpl.

Available on crate feature ast only.

Returns Some if self is a reference of variant TaggedTpl, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TaggedTpl, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TaggedTpl.

Panics

Panics if the value is not TaggedTpl, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TaggedTpl, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Arrow.

Available on crate feature ast only.

Returns Some if self is a reference of variant Arrow, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Arrow, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Arrow.

Panics

Panics if the value is not Arrow, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Arrow, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Class.

Available on crate feature ast only.

Returns Some if self is a reference of variant Class, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Class, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Class.

Panics

Panics if the value is not Class, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Class, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Yield.

Available on crate feature ast only.

Returns Some if self is a reference of variant Yield, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Yield, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Yield.

Panics

Panics if the value is not Yield, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Yield, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant MetaProp.

Available on crate feature ast only.

Returns Some if self is a reference of variant MetaProp, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant MetaProp, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of MetaProp.

Panics

Panics if the value is not MetaProp, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant MetaProp, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Await.

Available on crate feature ast only.

Returns Some if self is a reference of variant Await, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Await, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Await.

Panics

Panics if the value is not Await, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Await, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Paren.

Available on crate feature ast only.

Returns Some if self is a reference of variant Paren, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Paren, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Paren.

Panics

Panics if the value is not Paren, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Paren, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant JSXMember.

Available on crate feature ast only.

Returns Some if self is a reference of variant JSXMember, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant JSXMember, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of JSXMember.

Panics

Panics if the value is not JSXMember, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant JSXMember, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant JSXNamespacedName.

Available on crate feature ast only.

Returns Some if self is a reference of variant JSXNamespacedName, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant JSXNamespacedName, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of JSXNamespacedName.

Panics

Panics if the value is not JSXNamespacedName, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant JSXNamespacedName, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant JSXEmpty.

Available on crate feature ast only.

Returns Some if self is a reference of variant JSXEmpty, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant JSXEmpty, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of JSXEmpty.

Panics

Panics if the value is not JSXEmpty, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant JSXEmpty, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant JSXElement.

Available on crate feature ast only.

Returns Some if self is a reference of variant JSXElement, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant JSXElement, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of JSXElement.

Panics

Panics if the value is not JSXElement, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant JSXElement, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant JSXFragment.

Available on crate feature ast only.

Returns Some if self is a reference of variant JSXFragment, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant JSXFragment, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of JSXFragment.

Panics

Panics if the value is not JSXFragment, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant JSXFragment, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TsTypeAssertion.

Available on crate feature ast only.

Returns Some if self is a reference of variant TsTypeAssertion, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TsTypeAssertion, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TsTypeAssertion.

Panics

Panics if the value is not TsTypeAssertion, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TsTypeAssertion, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TsConstAssertion.

Available on crate feature ast only.

Returns Some if self is a reference of variant TsConstAssertion, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TsConstAssertion, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TsConstAssertion.

Panics

Panics if the value is not TsConstAssertion, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TsConstAssertion, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TsNonNull.

Available on crate feature ast only.

Returns Some if self is a reference of variant TsNonNull, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TsNonNull, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TsNonNull.

Panics

Panics if the value is not TsNonNull, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TsNonNull, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TsAs.

Available on crate feature ast only.

Returns Some if self is a reference of variant TsAs, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TsAs, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TsAs.

Panics

Panics if the value is not TsAs, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TsAs, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant TsInstantiation.

Available on crate feature ast only.

Returns Some if self is a reference of variant TsInstantiation, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant TsInstantiation, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of TsInstantiation.

Panics

Panics if the value is not TsInstantiation, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant TsInstantiation, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant PrivateName.

Available on crate feature ast only.

Returns Some if self is a reference of variant PrivateName, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant PrivateName, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of PrivateName.

Panics

Panics if the value is not PrivateName, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant PrivateName, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant OptChain.

Available on crate feature ast only.

Returns Some if self is a reference of variant OptChain, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant OptChain, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of OptChain.

Panics

Panics if the value is not OptChain, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant OptChain, and None otherwise.

Available on crate feature ast only.

Returns true if self is of variant Invalid.

Available on crate feature ast only.

Returns Some if self is a reference of variant Invalid, and None otherwise.

Available on crate feature ast only.

Returns Some if self is a mutable reference of variant Invalid, and None otherwise.

Available on crate feature ast only.

Unwraps the value, yielding the content of Invalid.

Panics

Panics if the value is not Invalid, with a panic message including the content of self.

Available on crate feature ast only.

Returns Some if self is of variant Invalid, and None otherwise.

Available on crate feature ast only.

Normalize parenthesized expressions.

This will normalize (foo), ((foo)), … to foo.

If self is not a parenthesized expression, it will be returned as is.

Available on crate feature ast only.

Normalize parenthesized expressions.

This will normalize (foo), ((foo)), … to foo.

If self is not a parenthesized expression, it will be returned as is.

Available on crate feature ast only.

Creates an expression from exprs. This will return first element if the length is 1 and a sequential expression otherwise.

Panics

Panics if exprs is empty.

Trait Implementations

The archived representation of this type. Read more

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type. Read more

Creates the archived version of this value at the given position and writes it to the given output. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Deserializes using the given deserializer

Returns true if this is an immutable value.

Checks if self is NaN.

Returns true if id references a global object.

Returns true if id references a global object.

Get bool value of self if it does not have any side effects.

This method emulates the Boolean() JavaScript cast function. Note: unlike getPureBooleanValue this function does not return None for expressions with side-effects. Read more

Emulates javascript Number() cast function. Read more

Returns Known only if it’s pure.

Apply the supplied predicate against all possible result Nodes of the expression. Read more

Returns true if this is an immutable value.

Checks if self is NaN.

Returns true if id references a global object.

Returns true if id references a global object.

Get bool value of self if it does not have any side effects.

This method emulates the Boolean() JavaScript cast function. Note: unlike getPureBooleanValue this function does not return None for expressions with side-effects. Read more

Emulates javascript Number() cast function. Read more

Returns Known only if it’s pure.

Apply the supplied predicate against all possible result Nodes of the expression. Read more

Calls a visitor method (v.fold_xxx) with self.

Visit children nodes of self with v

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

If a function has a function name, it may be called recursively. We use the named expression to hoist the function name internally Therefore, its recursive calls refer to the correct identity.

Else if a function has a binding name, it may be called recursively as well. But it refer the binding name which exist the outer scope. It is safe to using anonymous expression wrapper.

Optimization: A function without a name cannot be recursively referenced by Ident. It’s safe to return the expr without wrapper if the params.len is 0.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Writes the dependencies for the object and returns a resolver that can create the archived type. Read more

Serialize this value into the given Serde serializer. Read more

Get span of self.

Create a dummy value of this type.

Mutate self using op, which accepts owned data.

Calls a visitor method (v.visit_xxx) with self.

Visit children nodes of self with v

Calls a visitor method (v.visit_mut_xxx) with self.

Calls a visitor method (v.visit_xxx) with self.

Visit children nodes of self with v

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more

The resolver for the metadata of this type. Read more

Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more

Resolves a relative pointer to this value with the given from and to and writes it to the given output. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Compare self to key and return true if they are equal.

Creates an ExprOrSpread using the given Expr. Read more

Creates an expression statement with self.

Creates a statement whcih return self.

create a ArrowExpr which return self Read more

create a Function which return self Read more

create a var declartor using self as init Read more

Creates a binary expr $self ===

Creates a binary expr $self $op $rhs

Creates a assign expr $lhs $op $self

Returns the argument unchanged.

Available on crate feature quote only.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Set the foreground color generically Read more

Set the background color generically. Read more

Change the foreground color to black

Change the background color to black

Change the foreground color to red

Change the background color to red

Change the foreground color to green

Change the background color to green

Change the foreground color to yellow

Change the background color to yellow

Change the foreground color to blue

Change the background color to blue

Change the foreground color to magenta

Change the background color to magenta

Change the foreground color to purple

Change the background color to purple

Change the foreground color to cyan

Change the background color to cyan

Change the foreground color to white

Change the background color to white

Change the foreground color to the terminal default

Change the background color to the terminal default

Change the foreground color to bright black

Change the background color to bright black

Change the foreground color to bright red

Change the background color to bright red

Change the foreground color to bright green

Change the background color to bright green

Change the foreground color to bright yellow

Change the background color to bright yellow

Change the foreground color to bright blue

Change the background color to bright blue

Change the foreground color to bright magenta

Change the background color to bright magenta

Change the foreground color to bright purple

Change the background color to bright purple

Change the foreground color to bright cyan

Change the background color to bright cyan

Change the foreground color to bright white

Change the background color to bright white

Make the text bold

Make the text dim

Make the text italicized

Make the text italicized

Make the text blink

Make the text blink (but fast!)

Swap the foreground and background colors

Hide the text

Cross out the text

Set the foreground color at runtime. Only use if you do not know which color will be used at compile-time. If the color is constant, use either OwoColorize::fg or a color-specific method, such as OwoColorize::green, Read more

Set the background color at runtime. Only use if you do not know what color to use at compile-time. If the color is constant, use either OwoColorize::bg or a color-specific method, such as OwoColorize::on_yellow, Read more

Set the foreground color to a specific RGB value.

Set the background color to a specific RGB value.

Sets the foreground color to an RGB value.

Sets the background color to an RGB value.

Apply a runtime-determined style

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type for metadata in pointers and references to Self.

Should always be Self

Writes the object and returns the position of the archived type.

Serializes the metadata for the given type.

Gets a custom text range to use when emitting comments.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more