#[repr(u32)]pub enum Expr {
Show 38 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>),
    JSXFragment(JSXFragment),
    TsTypeAssertion(TsTypeAssertion),
    TsConstAssertion(TsConstAssertion),
    TsNonNull(TsNonNullExpr),
    TsAs(TsAsExpr),
    TsInstantiation(TsInstantiation),
    TsSatisfies(TsSatisfiesExpr),
    PrivateName(PrivateName),
    OptChain(OptChainExpr),
    Invalid(Invalid),
}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>)
JSXFragment(JSXFragment)
TsTypeAssertion(TsTypeAssertion)
TsConstAssertion(TsConstAssertion)
TsNonNull(TsNonNullExpr)
TsAs(TsAsExpr)
TsInstantiation(TsInstantiation)
TsSatisfies(TsSatisfiesExpr)
PrivateName(PrivateName)
OptChain(OptChainExpr)
Invalid(Invalid)
Implementations§
Source§impl Expr
 
impl Expr
Sourcepub fn as_this(&self) -> Option<&ThisExpr>
 
pub fn as_this(&self) -> Option<&ThisExpr>
Returns Some if self is a reference of variant This, and None otherwise.
Sourcepub fn as_mut_this(&mut self) -> Option<&mut ThisExpr>
 
pub fn as_mut_this(&mut self) -> Option<&mut ThisExpr>
Returns Some if self is a mutable reference of variant This, and None otherwise.
Sourcepub fn expect_this(self) -> ThisExprwhere
    Self: Debug,
 
pub fn expect_this(self) -> ThisExprwhere
    Self: Debug,
Sourcepub fn this(self) -> Option<ThisExpr>
 
pub fn this(self) -> Option<ThisExpr>
Returns Some if self is of variant This, and None otherwise.
Sourcepub fn as_array(&self) -> Option<&ArrayLit>
 
pub fn as_array(&self) -> Option<&ArrayLit>
Returns Some if self is a reference of variant Array, and None otherwise.
Sourcepub fn as_mut_array(&mut self) -> Option<&mut ArrayLit>
 
pub fn as_mut_array(&mut self) -> Option<&mut ArrayLit>
Returns Some if self is a mutable reference of variant Array, and None otherwise.
Sourcepub fn expect_array(self) -> ArrayLitwhere
    Self: Debug,
 
pub fn expect_array(self) -> ArrayLitwhere
    Self: Debug,
Sourcepub fn array(self) -> Option<ArrayLit>
 
pub fn array(self) -> Option<ArrayLit>
Returns Some if self is of variant Array, and None otherwise.
Sourcepub fn as_object(&self) -> Option<&ObjectLit>
 
pub fn as_object(&self) -> Option<&ObjectLit>
Returns Some if self is a reference of variant Object, and None otherwise.
Sourcepub fn as_mut_object(&mut self) -> Option<&mut ObjectLit>
 
pub fn as_mut_object(&mut self) -> Option<&mut ObjectLit>
Returns Some if self is a mutable reference of variant Object, and None otherwise.
Sourcepub fn expect_object(self) -> ObjectLitwhere
    Self: Debug,
 
pub fn expect_object(self) -> ObjectLitwhere
    Self: Debug,
Sourcepub fn object(self) -> Option<ObjectLit>
 
pub fn object(self) -> Option<ObjectLit>
Returns Some if self is of variant Object, and None otherwise.
Sourcepub const fn is_fn_expr(&self) -> bool
 
pub const fn is_fn_expr(&self) -> bool
Returns true if self is of variant Fn.
Sourcepub fn as_fn_expr(&self) -> Option<&FnExpr>
 
pub fn as_fn_expr(&self) -> Option<&FnExpr>
Returns Some if self is a reference of variant Fn, and None otherwise.
Sourcepub fn as_mut_fn_expr(&mut self) -> Option<&mut FnExpr>
 
pub fn as_mut_fn_expr(&mut self) -> Option<&mut FnExpr>
Returns Some if self is a mutable reference of variant Fn, and None otherwise.
Sourcepub fn expect_fn_expr(self) -> FnExprwhere
    Self: Debug,
 
pub fn expect_fn_expr(self) -> FnExprwhere
    Self: Debug,
Sourcepub fn fn_expr(self) -> Option<FnExpr>
 
pub fn fn_expr(self) -> Option<FnExpr>
Returns Some if self is of variant Fn, and None otherwise.
Sourcepub fn as_unary(&self) -> Option<&UnaryExpr>
 
pub fn as_unary(&self) -> Option<&UnaryExpr>
Returns Some if self is a reference of variant Unary, and None otherwise.
Sourcepub fn as_mut_unary(&mut self) -> Option<&mut UnaryExpr>
 
pub fn as_mut_unary(&mut self) -> Option<&mut UnaryExpr>
Returns Some if self is a mutable reference of variant Unary, and None otherwise.
Sourcepub fn expect_unary(self) -> UnaryExprwhere
    Self: Debug,
 
pub fn expect_unary(self) -> UnaryExprwhere
    Self: Debug,
Sourcepub fn unary(self) -> Option<UnaryExpr>
 
pub fn unary(self) -> Option<UnaryExpr>
Returns Some if self is of variant Unary, and None otherwise.
Sourcepub fn as_update(&self) -> Option<&UpdateExpr>
 
pub fn as_update(&self) -> Option<&UpdateExpr>
Returns Some if self is a reference of variant Update, and None otherwise.
Sourcepub fn as_mut_update(&mut self) -> Option<&mut UpdateExpr>
 
pub fn as_mut_update(&mut self) -> Option<&mut UpdateExpr>
Returns Some if self is a mutable reference of variant Update, and None otherwise.
Sourcepub fn expect_update(self) -> UpdateExprwhere
    Self: Debug,
 
pub fn expect_update(self) -> UpdateExprwhere
    Self: Debug,
Sourcepub fn update(self) -> Option<UpdateExpr>
 
pub fn update(self) -> Option<UpdateExpr>
Returns Some if self is of variant Update, and None otherwise.
Sourcepub fn as_bin(&self) -> Option<&BinExpr>
 
pub fn as_bin(&self) -> Option<&BinExpr>
Returns Some if self is a reference of variant Bin, and None otherwise.
Sourcepub fn as_mut_bin(&mut self) -> Option<&mut BinExpr>
 
pub fn as_mut_bin(&mut self) -> Option<&mut BinExpr>
Returns Some if self is a mutable reference of variant Bin, and None otherwise.
Sourcepub fn expect_bin(self) -> BinExprwhere
    Self: Debug,
 
pub fn expect_bin(self) -> BinExprwhere
    Self: Debug,
Sourcepub fn bin(self) -> Option<BinExpr>
 
pub fn bin(self) -> Option<BinExpr>
Returns Some if self is of variant Bin, and None otherwise.
Sourcepub fn as_assign(&self) -> Option<&AssignExpr>
 
pub fn as_assign(&self) -> Option<&AssignExpr>
Returns Some if self is a reference of variant Assign, and None otherwise.
Sourcepub fn as_mut_assign(&mut self) -> Option<&mut AssignExpr>
 
pub fn as_mut_assign(&mut self) -> Option<&mut AssignExpr>
Returns Some if self is a mutable reference of variant Assign, and None otherwise.
Sourcepub fn expect_assign(self) -> AssignExprwhere
    Self: Debug,
 
pub fn expect_assign(self) -> AssignExprwhere
    Self: Debug,
Sourcepub fn assign(self) -> Option<AssignExpr>
 
pub fn assign(self) -> Option<AssignExpr>
Returns Some if self is of variant Assign, and None otherwise.
Sourcepub fn as_member(&self) -> Option<&MemberExpr>
 
pub fn as_member(&self) -> Option<&MemberExpr>
Returns Some if self is a reference of variant Member, and None otherwise.
Sourcepub fn as_mut_member(&mut self) -> Option<&mut MemberExpr>
 
pub fn as_mut_member(&mut self) -> Option<&mut MemberExpr>
Returns Some if self is a mutable reference of variant Member, and None otherwise.
Sourcepub fn expect_member(self) -> MemberExprwhere
    Self: Debug,
 
pub fn expect_member(self) -> MemberExprwhere
    Self: Debug,
Sourcepub fn member(self) -> Option<MemberExpr>
 
pub fn member(self) -> Option<MemberExpr>
Returns Some if self is of variant Member, and None otherwise.
Sourcepub const fn is_super_prop(&self) -> bool
 
pub const fn is_super_prop(&self) -> bool
Returns true if self is of variant SuperProp.
Sourcepub fn as_super_prop(&self) -> Option<&SuperPropExpr>
 
pub fn as_super_prop(&self) -> Option<&SuperPropExpr>
Returns Some if self is a reference of variant SuperProp, and None otherwise.
Sourcepub fn as_mut_super_prop(&mut self) -> Option<&mut SuperPropExpr>
 
pub fn as_mut_super_prop(&mut self) -> Option<&mut SuperPropExpr>
Returns Some if self is a mutable reference of variant SuperProp, and None otherwise.
Sourcepub fn expect_super_prop(self) -> SuperPropExprwhere
    Self: Debug,
 
pub fn expect_super_prop(self) -> SuperPropExprwhere
    Self: Debug,
Sourcepub fn super_prop(self) -> Option<SuperPropExpr>
 
pub fn super_prop(self) -> Option<SuperPropExpr>
Returns Some if self is of variant SuperProp, and None otherwise.
Sourcepub fn as_cond(&self) -> Option<&CondExpr>
 
pub fn as_cond(&self) -> Option<&CondExpr>
Returns Some if self is a reference of variant Cond, and None otherwise.
Sourcepub fn as_mut_cond(&mut self) -> Option<&mut CondExpr>
 
pub fn as_mut_cond(&mut self) -> Option<&mut CondExpr>
Returns Some if self is a mutable reference of variant Cond, and None otherwise.
Sourcepub fn expect_cond(self) -> CondExprwhere
    Self: Debug,
 
pub fn expect_cond(self) -> CondExprwhere
    Self: Debug,
Sourcepub fn cond(self) -> Option<CondExpr>
 
pub fn cond(self) -> Option<CondExpr>
Returns Some if self is of variant Cond, and None otherwise.
Sourcepub fn as_call(&self) -> Option<&CallExpr>
 
pub fn as_call(&self) -> Option<&CallExpr>
Returns Some if self is a reference of variant Call, and None otherwise.
Sourcepub fn as_mut_call(&mut self) -> Option<&mut CallExpr>
 
pub fn as_mut_call(&mut self) -> Option<&mut CallExpr>
Returns Some if self is a mutable reference of variant Call, and None otherwise.
Sourcepub fn expect_call(self) -> CallExprwhere
    Self: Debug,
 
pub fn expect_call(self) -> CallExprwhere
    Self: Debug,
Sourcepub fn call(self) -> Option<CallExpr>
 
pub fn call(self) -> Option<CallExpr>
Returns Some if self is of variant Call, and None otherwise.
Sourcepub fn as_new(&self) -> Option<&NewExpr>
 
pub fn as_new(&self) -> Option<&NewExpr>
Returns Some if self is a reference of variant New, and None otherwise.
Sourcepub fn as_mut_new(&mut self) -> Option<&mut NewExpr>
 
pub fn as_mut_new(&mut self) -> Option<&mut NewExpr>
Returns Some if self is a mutable reference of variant New, and None otherwise.
Sourcepub fn expect_new(self) -> NewExprwhere
    Self: Debug,
 
pub fn expect_new(self) -> NewExprwhere
    Self: Debug,
Sourcepub fn new(self) -> Option<NewExpr>
 
pub fn new(self) -> Option<NewExpr>
Returns Some if self is of variant New, and None otherwise.
Sourcepub fn as_seq(&self) -> Option<&SeqExpr>
 
pub fn as_seq(&self) -> Option<&SeqExpr>
Returns Some if self is a reference of variant Seq, and None otherwise.
Sourcepub fn as_mut_seq(&mut self) -> Option<&mut SeqExpr>
 
pub fn as_mut_seq(&mut self) -> Option<&mut SeqExpr>
Returns Some if self is a mutable reference of variant Seq, and None otherwise.
Sourcepub fn expect_seq(self) -> SeqExprwhere
    Self: Debug,
 
pub fn expect_seq(self) -> SeqExprwhere
    Self: Debug,
Sourcepub fn seq(self) -> Option<SeqExpr>
 
pub fn seq(self) -> Option<SeqExpr>
Returns Some if self is of variant Seq, and None otherwise.
Sourcepub fn as_ident(&self) -> Option<&Ident>
 
pub fn as_ident(&self) -> Option<&Ident>
Returns Some if self is a reference of variant Ident, and None otherwise.
Sourcepub fn as_mut_ident(&mut self) -> Option<&mut Ident>
 
pub fn as_mut_ident(&mut self) -> Option<&mut Ident>
Returns Some if self is a mutable reference of variant Ident, and None otherwise.
Sourcepub fn expect_ident(self) -> Identwhere
    Self: Debug,
 
pub fn expect_ident(self) -> Identwhere
    Self: Debug,
Sourcepub fn ident(self) -> Option<Ident>
 
pub fn ident(self) -> Option<Ident>
Returns Some if self is of variant Ident, and None otherwise.
Sourcepub fn as_lit(&self) -> Option<&Lit>
 
pub fn as_lit(&self) -> Option<&Lit>
Returns Some if self is a reference of variant Lit, and None otherwise.
Sourcepub fn as_mut_lit(&mut self) -> Option<&mut Lit>
 
pub fn as_mut_lit(&mut self) -> Option<&mut Lit>
Returns Some if self is a mutable reference of variant Lit, and None otherwise.
Sourcepub fn expect_lit(self) -> Litwhere
    Self: Debug,
 
pub fn expect_lit(self) -> Litwhere
    Self: Debug,
Sourcepub fn as_tpl(&self) -> Option<&Tpl>
 
pub fn as_tpl(&self) -> Option<&Tpl>
Returns Some if self is a reference of variant Tpl, and None otherwise.
Sourcepub fn as_mut_tpl(&mut self) -> Option<&mut Tpl>
 
pub fn as_mut_tpl(&mut self) -> Option<&mut Tpl>
Returns Some if self is a mutable reference of variant Tpl, and None otherwise.
Sourcepub fn expect_tpl(self) -> Tplwhere
    Self: Debug,
 
pub fn expect_tpl(self) -> Tplwhere
    Self: Debug,
Sourcepub const fn is_tagged_tpl(&self) -> bool
 
pub const fn is_tagged_tpl(&self) -> bool
Returns true if self is of variant TaggedTpl.
Sourcepub fn as_tagged_tpl(&self) -> Option<&TaggedTpl>
 
pub fn as_tagged_tpl(&self) -> Option<&TaggedTpl>
Returns Some if self is a reference of variant TaggedTpl, and None otherwise.
Sourcepub fn as_mut_tagged_tpl(&mut self) -> Option<&mut TaggedTpl>
 
pub fn as_mut_tagged_tpl(&mut self) -> Option<&mut TaggedTpl>
Returns Some if self is a mutable reference of variant TaggedTpl, and None otherwise.
Sourcepub fn expect_tagged_tpl(self) -> TaggedTplwhere
    Self: Debug,
 
pub fn expect_tagged_tpl(self) -> TaggedTplwhere
    Self: Debug,
Sourcepub fn tagged_tpl(self) -> Option<TaggedTpl>
 
pub fn tagged_tpl(self) -> Option<TaggedTpl>
Returns Some if self is of variant TaggedTpl, and None otherwise.
Sourcepub fn as_arrow(&self) -> Option<&ArrowExpr>
 
pub fn as_arrow(&self) -> Option<&ArrowExpr>
Returns Some if self is a reference of variant Arrow, and None otherwise.
Sourcepub fn as_mut_arrow(&mut self) -> Option<&mut ArrowExpr>
 
pub fn as_mut_arrow(&mut self) -> Option<&mut ArrowExpr>
Returns Some if self is a mutable reference of variant Arrow, and None otherwise.
Sourcepub fn expect_arrow(self) -> ArrowExprwhere
    Self: Debug,
 
pub fn expect_arrow(self) -> ArrowExprwhere
    Self: Debug,
Sourcepub fn arrow(self) -> Option<ArrowExpr>
 
pub fn arrow(self) -> Option<ArrowExpr>
Returns Some if self is of variant Arrow, and None otherwise.
Sourcepub fn as_class(&self) -> Option<&ClassExpr>
 
pub fn as_class(&self) -> Option<&ClassExpr>
Returns Some if self is a reference of variant Class, and None otherwise.
Sourcepub fn as_mut_class(&mut self) -> Option<&mut ClassExpr>
 
pub fn as_mut_class(&mut self) -> Option<&mut ClassExpr>
Returns Some if self is a mutable reference of variant Class, and None otherwise.
Sourcepub fn expect_class(self) -> ClassExprwhere
    Self: Debug,
 
pub fn expect_class(self) -> ClassExprwhere
    Self: Debug,
Sourcepub fn class(self) -> Option<ClassExpr>
 
pub fn class(self) -> Option<ClassExpr>
Returns Some if self is of variant Class, and None otherwise.
Sourcepub const fn is_yield_expr(&self) -> bool
 
pub const fn is_yield_expr(&self) -> bool
Returns true if self is of variant Yield.
Sourcepub fn as_yield_expr(&self) -> Option<&YieldExpr>
 
pub fn as_yield_expr(&self) -> Option<&YieldExpr>
Returns Some if self is a reference of variant Yield, and None otherwise.
Sourcepub fn as_mut_yield_expr(&mut self) -> Option<&mut YieldExpr>
 
pub fn as_mut_yield_expr(&mut self) -> Option<&mut YieldExpr>
Returns Some if self is a mutable reference of variant Yield, and None otherwise.
Sourcepub fn expect_yield_expr(self) -> YieldExprwhere
    Self: Debug,
 
pub fn expect_yield_expr(self) -> YieldExprwhere
    Self: Debug,
Sourcepub fn yield_expr(self) -> Option<YieldExpr>
 
pub fn yield_expr(self) -> Option<YieldExpr>
Returns Some if self is of variant Yield, and None otherwise.
Sourcepub const fn is_meta_prop(&self) -> bool
 
pub const fn is_meta_prop(&self) -> bool
Returns true if self is of variant MetaProp.
Sourcepub fn as_meta_prop(&self) -> Option<&MetaPropExpr>
 
pub fn as_meta_prop(&self) -> Option<&MetaPropExpr>
Returns Some if self is a reference of variant MetaProp, and None otherwise.
Sourcepub fn as_mut_meta_prop(&mut self) -> Option<&mut MetaPropExpr>
 
pub fn as_mut_meta_prop(&mut self) -> Option<&mut MetaPropExpr>
Returns Some if self is a mutable reference of variant MetaProp, and None otherwise.
Sourcepub fn expect_meta_prop(self) -> MetaPropExprwhere
    Self: Debug,
 
pub fn expect_meta_prop(self) -> MetaPropExprwhere
    Self: Debug,
Sourcepub fn meta_prop(self) -> Option<MetaPropExpr>
 
pub fn meta_prop(self) -> Option<MetaPropExpr>
Returns Some if self is of variant MetaProp, and None otherwise.
Sourcepub const fn is_await_expr(&self) -> bool
 
pub const fn is_await_expr(&self) -> bool
Returns true if self is of variant Await.
Sourcepub fn as_await_expr(&self) -> Option<&AwaitExpr>
 
pub fn as_await_expr(&self) -> Option<&AwaitExpr>
Returns Some if self is a reference of variant Await, and None otherwise.
Sourcepub fn as_mut_await_expr(&mut self) -> Option<&mut AwaitExpr>
 
pub fn as_mut_await_expr(&mut self) -> Option<&mut AwaitExpr>
Returns Some if self is a mutable reference of variant Await, and None otherwise.
Sourcepub fn expect_await_expr(self) -> AwaitExprwhere
    Self: Debug,
 
pub fn expect_await_expr(self) -> AwaitExprwhere
    Self: Debug,
Sourcepub fn await_expr(self) -> Option<AwaitExpr>
 
pub fn await_expr(self) -> Option<AwaitExpr>
Returns Some if self is of variant Await, and None otherwise.
Sourcepub fn as_paren(&self) -> Option<&ParenExpr>
 
pub fn as_paren(&self) -> Option<&ParenExpr>
Returns Some if self is a reference of variant Paren, and None otherwise.
Sourcepub fn as_mut_paren(&mut self) -> Option<&mut ParenExpr>
 
pub fn as_mut_paren(&mut self) -> Option<&mut ParenExpr>
Returns Some if self is a mutable reference of variant Paren, and None otherwise.
Sourcepub fn expect_paren(self) -> ParenExprwhere
    Self: Debug,
 
pub fn expect_paren(self) -> ParenExprwhere
    Self: Debug,
Sourcepub fn paren(self) -> Option<ParenExpr>
 
pub fn paren(self) -> Option<ParenExpr>
Returns Some if self is of variant Paren, and None otherwise.
Sourcepub const fn is_jsx_member(&self) -> bool
 
pub const fn is_jsx_member(&self) -> bool
Returns true if self is of variant JSXMember.
Sourcepub fn as_jsx_member(&self) -> Option<&JSXMemberExpr>
 
pub fn as_jsx_member(&self) -> Option<&JSXMemberExpr>
Returns Some if self is a reference of variant JSXMember, and None otherwise.
Sourcepub fn as_mut_jsx_member(&mut self) -> Option<&mut JSXMemberExpr>
 
pub fn as_mut_jsx_member(&mut self) -> Option<&mut JSXMemberExpr>
Returns Some if self is a mutable reference of variant JSXMember, and None otherwise.
Sourcepub fn expect_jsx_member(self) -> JSXMemberExprwhere
    Self: Debug,
 
pub fn expect_jsx_member(self) -> JSXMemberExprwhere
    Self: Debug,
Sourcepub fn jsx_member(self) -> Option<JSXMemberExpr>
 
pub fn jsx_member(self) -> Option<JSXMemberExpr>
Returns Some if self is of variant JSXMember, and None otherwise.
Sourcepub const fn is_jsx_namespaced_name(&self) -> bool
 
pub const fn is_jsx_namespaced_name(&self) -> bool
Returns true if self is of variant JSXNamespacedName.
Sourcepub fn as_jsx_namespaced_name(&self) -> Option<&JSXNamespacedName>
 
pub fn as_jsx_namespaced_name(&self) -> Option<&JSXNamespacedName>
Returns Some if self is a reference of variant JSXNamespacedName, and None otherwise.
Sourcepub fn as_mut_jsx_namespaced_name(&mut self) -> Option<&mut JSXNamespacedName>
 
pub fn as_mut_jsx_namespaced_name(&mut self) -> Option<&mut JSXNamespacedName>
Returns Some if self is a mutable reference of variant JSXNamespacedName, and None otherwise.
Sourcepub fn expect_jsx_namespaced_name(self) -> JSXNamespacedNamewhere
    Self: Debug,
 
pub fn expect_jsx_namespaced_name(self) -> JSXNamespacedNamewhere
    Self: Debug,
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.
Sourcepub fn jsx_namespaced_name(self) -> Option<JSXNamespacedName>
 
pub fn jsx_namespaced_name(self) -> Option<JSXNamespacedName>
Returns Some if self is of variant JSXNamespacedName, and None otherwise.
Sourcepub const fn is_jsx_empty(&self) -> bool
 
pub const fn is_jsx_empty(&self) -> bool
Returns true if self is of variant JSXEmpty.
Sourcepub fn as_jsx_empty(&self) -> Option<&JSXEmptyExpr>
 
pub fn as_jsx_empty(&self) -> Option<&JSXEmptyExpr>
Returns Some if self is a reference of variant JSXEmpty, and None otherwise.
Sourcepub fn as_mut_jsx_empty(&mut self) -> Option<&mut JSXEmptyExpr>
 
pub fn as_mut_jsx_empty(&mut self) -> Option<&mut JSXEmptyExpr>
Returns Some if self is a mutable reference of variant JSXEmpty, and None otherwise.
Sourcepub fn expect_jsx_empty(self) -> JSXEmptyExprwhere
    Self: Debug,
 
pub fn expect_jsx_empty(self) -> JSXEmptyExprwhere
    Self: Debug,
Sourcepub fn jsx_empty(self) -> Option<JSXEmptyExpr>
 
pub fn jsx_empty(self) -> Option<JSXEmptyExpr>
Returns Some if self is of variant JSXEmpty, and None otherwise.
Sourcepub const fn is_jsx_element(&self) -> bool
 
pub const fn is_jsx_element(&self) -> bool
Returns true if self is of variant JSXElement.
Sourcepub fn as_jsx_element(&self) -> Option<&Box<JSXElement>>
 
pub fn as_jsx_element(&self) -> Option<&Box<JSXElement>>
Returns Some if self is a reference of variant JSXElement, and None otherwise.
Sourcepub fn as_mut_jsx_element(&mut self) -> Option<&mut Box<JSXElement>>
 
pub fn as_mut_jsx_element(&mut self) -> Option<&mut Box<JSXElement>>
Returns Some if self is a mutable reference of variant JSXElement, and None otherwise.
Sourcepub fn expect_jsx_element(self) -> Box<JSXElement>where
    Self: Debug,
 
pub fn expect_jsx_element(self) -> Box<JSXElement>where
    Self: Debug,
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.
Sourcepub fn jsx_element(self) -> Option<Box<JSXElement>>
 
pub fn jsx_element(self) -> Option<Box<JSXElement>>
Returns Some if self is of variant JSXElement, and None otherwise.
Sourcepub const fn is_jsx_fragment(&self) -> bool
 
pub const fn is_jsx_fragment(&self) -> bool
Returns true if self is of variant JSXFragment.
Sourcepub fn as_jsx_fragment(&self) -> Option<&JSXFragment>
 
pub fn as_jsx_fragment(&self) -> Option<&JSXFragment>
Returns Some if self is a reference of variant JSXFragment, and None otherwise.
Sourcepub fn as_mut_jsx_fragment(&mut self) -> Option<&mut JSXFragment>
 
pub fn as_mut_jsx_fragment(&mut self) -> Option<&mut JSXFragment>
Returns Some if self is a mutable reference of variant JSXFragment, and None otherwise.
Sourcepub fn expect_jsx_fragment(self) -> JSXFragmentwhere
    Self: Debug,
 
pub fn expect_jsx_fragment(self) -> JSXFragmentwhere
    Self: Debug,
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.
Sourcepub fn jsx_fragment(self) -> Option<JSXFragment>
 
pub fn jsx_fragment(self) -> Option<JSXFragment>
Returns Some if self is of variant JSXFragment, and None otherwise.
Sourcepub const fn is_ts_type_assertion(&self) -> bool
 
pub const fn is_ts_type_assertion(&self) -> bool
Returns true if self is of variant TsTypeAssertion.
Sourcepub fn as_ts_type_assertion(&self) -> Option<&TsTypeAssertion>
 
pub fn as_ts_type_assertion(&self) -> Option<&TsTypeAssertion>
Returns Some if self is a reference of variant TsTypeAssertion, and None otherwise.
Sourcepub fn as_mut_ts_type_assertion(&mut self) -> Option<&mut TsTypeAssertion>
 
pub fn as_mut_ts_type_assertion(&mut self) -> Option<&mut TsTypeAssertion>
Returns Some if self is a mutable reference of variant TsTypeAssertion, and None otherwise.
Sourcepub fn expect_ts_type_assertion(self) -> TsTypeAssertionwhere
    Self: Debug,
 
pub fn expect_ts_type_assertion(self) -> TsTypeAssertionwhere
    Self: Debug,
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.
Sourcepub fn ts_type_assertion(self) -> Option<TsTypeAssertion>
 
pub fn ts_type_assertion(self) -> Option<TsTypeAssertion>
Returns Some if self is of variant TsTypeAssertion, and None otherwise.
Sourcepub const fn is_ts_const_assertion(&self) -> bool
 
pub const fn is_ts_const_assertion(&self) -> bool
Returns true if self is of variant TsConstAssertion.
Sourcepub fn as_ts_const_assertion(&self) -> Option<&TsConstAssertion>
 
pub fn as_ts_const_assertion(&self) -> Option<&TsConstAssertion>
Returns Some if self is a reference of variant TsConstAssertion, and None otherwise.
Sourcepub fn as_mut_ts_const_assertion(&mut self) -> Option<&mut TsConstAssertion>
 
pub fn as_mut_ts_const_assertion(&mut self) -> Option<&mut TsConstAssertion>
Returns Some if self is a mutable reference of variant TsConstAssertion, and None otherwise.
Sourcepub fn expect_ts_const_assertion(self) -> TsConstAssertionwhere
    Self: Debug,
 
pub fn expect_ts_const_assertion(self) -> TsConstAssertionwhere
    Self: Debug,
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.
Sourcepub fn ts_const_assertion(self) -> Option<TsConstAssertion>
 
pub fn ts_const_assertion(self) -> Option<TsConstAssertion>
Returns Some if self is of variant TsConstAssertion, and None otherwise.
Sourcepub const fn is_ts_non_null(&self) -> bool
 
pub const fn is_ts_non_null(&self) -> bool
Returns true if self is of variant TsNonNull.
Sourcepub fn as_ts_non_null(&self) -> Option<&TsNonNullExpr>
 
pub fn as_ts_non_null(&self) -> Option<&TsNonNullExpr>
Returns Some if self is a reference of variant TsNonNull, and None otherwise.
Sourcepub fn as_mut_ts_non_null(&mut self) -> Option<&mut TsNonNullExpr>
 
pub fn as_mut_ts_non_null(&mut self) -> Option<&mut TsNonNullExpr>
Returns Some if self is a mutable reference of variant TsNonNull, and None otherwise.
Sourcepub fn expect_ts_non_null(self) -> TsNonNullExprwhere
    Self: Debug,
 
pub fn expect_ts_non_null(self) -> TsNonNullExprwhere
    Self: Debug,
Sourcepub fn ts_non_null(self) -> Option<TsNonNullExpr>
 
pub fn ts_non_null(self) -> Option<TsNonNullExpr>
Returns Some if self is of variant TsNonNull, and None otherwise.
Sourcepub fn as_ts_as(&self) -> Option<&TsAsExpr>
 
pub fn as_ts_as(&self) -> Option<&TsAsExpr>
Returns Some if self is a reference of variant TsAs, and None otherwise.
Sourcepub fn as_mut_ts_as(&mut self) -> Option<&mut TsAsExpr>
 
pub fn as_mut_ts_as(&mut self) -> Option<&mut TsAsExpr>
Returns Some if self is a mutable reference of variant TsAs, and None otherwise.
Sourcepub fn expect_ts_as(self) -> TsAsExprwhere
    Self: Debug,
 
pub fn expect_ts_as(self) -> TsAsExprwhere
    Self: Debug,
Sourcepub fn ts_as(self) -> Option<TsAsExpr>
 
pub fn ts_as(self) -> Option<TsAsExpr>
Returns Some if self is of variant TsAs, and None otherwise.
Sourcepub const fn is_ts_instantiation(&self) -> bool
 
pub const fn is_ts_instantiation(&self) -> bool
Returns true if self is of variant TsInstantiation.
Sourcepub fn as_ts_instantiation(&self) -> Option<&TsInstantiation>
 
pub fn as_ts_instantiation(&self) -> Option<&TsInstantiation>
Returns Some if self is a reference of variant TsInstantiation, and None otherwise.
Sourcepub fn as_mut_ts_instantiation(&mut self) -> Option<&mut TsInstantiation>
 
pub fn as_mut_ts_instantiation(&mut self) -> Option<&mut TsInstantiation>
Returns Some if self is a mutable reference of variant TsInstantiation, and None otherwise.
Sourcepub fn expect_ts_instantiation(self) -> TsInstantiationwhere
    Self: Debug,
 
pub fn expect_ts_instantiation(self) -> TsInstantiationwhere
    Self: Debug,
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.
Sourcepub fn ts_instantiation(self) -> Option<TsInstantiation>
 
pub fn ts_instantiation(self) -> Option<TsInstantiation>
Returns Some if self is of variant TsInstantiation, and None otherwise.
Sourcepub const fn is_ts_satisfies(&self) -> bool
 
pub const fn is_ts_satisfies(&self) -> bool
Returns true if self is of variant TsSatisfies.
Sourcepub fn as_ts_satisfies(&self) -> Option<&TsSatisfiesExpr>
 
pub fn as_ts_satisfies(&self) -> Option<&TsSatisfiesExpr>
Returns Some if self is a reference of variant TsSatisfies, and None otherwise.
Sourcepub fn as_mut_ts_satisfies(&mut self) -> Option<&mut TsSatisfiesExpr>
 
pub fn as_mut_ts_satisfies(&mut self) -> Option<&mut TsSatisfiesExpr>
Returns Some if self is a mutable reference of variant TsSatisfies, and None otherwise.
Sourcepub fn expect_ts_satisfies(self) -> TsSatisfiesExprwhere
    Self: Debug,
 
pub fn expect_ts_satisfies(self) -> TsSatisfiesExprwhere
    Self: Debug,
Unwraps the value, yielding the content of TsSatisfies.
§Panics
Panics if the value is not TsSatisfies, with a panic message including the content of self.
Sourcepub fn ts_satisfies(self) -> Option<TsSatisfiesExpr>
 
pub fn ts_satisfies(self) -> Option<TsSatisfiesExpr>
Returns Some if self is of variant TsSatisfies, and None otherwise.
Sourcepub const fn is_private_name(&self) -> bool
 
pub const fn is_private_name(&self) -> bool
Returns true if self is of variant PrivateName.
Sourcepub fn as_private_name(&self) -> Option<&PrivateName>
 
pub fn as_private_name(&self) -> Option<&PrivateName>
Returns Some if self is a reference of variant PrivateName, and None otherwise.
Sourcepub fn as_mut_private_name(&mut self) -> Option<&mut PrivateName>
 
pub fn as_mut_private_name(&mut self) -> Option<&mut PrivateName>
Returns Some if self is a mutable reference of variant PrivateName, and None otherwise.
Sourcepub fn expect_private_name(self) -> PrivateNamewhere
    Self: Debug,
 
pub fn expect_private_name(self) -> PrivateNamewhere
    Self: Debug,
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.
Sourcepub fn private_name(self) -> Option<PrivateName>
 
pub fn private_name(self) -> Option<PrivateName>
Returns Some if self is of variant PrivateName, and None otherwise.
Sourcepub const fn is_opt_chain(&self) -> bool
 
pub const fn is_opt_chain(&self) -> bool
Returns true if self is of variant OptChain.
Sourcepub fn as_opt_chain(&self) -> Option<&OptChainExpr>
 
pub fn as_opt_chain(&self) -> Option<&OptChainExpr>
Returns Some if self is a reference of variant OptChain, and None otherwise.
Sourcepub fn as_mut_opt_chain(&mut self) -> Option<&mut OptChainExpr>
 
pub fn as_mut_opt_chain(&mut self) -> Option<&mut OptChainExpr>
Returns Some if self is a mutable reference of variant OptChain, and None otherwise.
Sourcepub fn expect_opt_chain(self) -> OptChainExprwhere
    Self: Debug,
 
pub fn expect_opt_chain(self) -> OptChainExprwhere
    Self: Debug,
Sourcepub fn opt_chain(self) -> Option<OptChainExpr>
 
pub fn opt_chain(self) -> Option<OptChainExpr>
Returns Some if self is of variant OptChain, and None otherwise.
Sourcepub const fn is_invalid(&self) -> bool
 
pub const fn is_invalid(&self) -> bool
Returns true if self is of variant Invalid.
Sourcepub fn as_invalid(&self) -> Option<&Invalid>
 
pub fn as_invalid(&self) -> Option<&Invalid>
Returns Some if self is a reference of variant Invalid, and None otherwise.
Sourcepub fn as_mut_invalid(&mut self) -> Option<&mut Invalid>
 
pub fn as_mut_invalid(&mut self) -> Option<&mut Invalid>
Returns Some if self is a mutable reference of variant Invalid, and None otherwise.
Sourcepub fn expect_invalid(self) -> Invalidwhere
    Self: Debug,
 
pub fn expect_invalid(self) -> Invalidwhere
    Self: Debug,
Source§impl Expr
 
impl Expr
pub fn is_null(&self) -> bool
pub fn leftmost(&self) -> Option<&Ident>
pub fn is_ident_ref_to<S>(&self, ident: &S) -> bool
Sourcepub fn unwrap_with<'a, F>(&'a self, op: F) -> &'a Expr
 
pub fn unwrap_with<'a, F>(&'a self, op: F) -> &'a Expr
Sourcepub fn unwrap_mut_with<'a, F>(&'a mut self, op: F) -> &'a mut Expr
 
pub fn unwrap_mut_with<'a, F>(&'a mut self, op: F) -> &'a mut Expr
Sourcepub fn unwrap_parens(&self) -> &Expr
 
pub fn unwrap_parens(&self) -> &Expr
Normalize parenthesized expressions.
This will normalize (foo), ((foo)), … to foo.
If self is not a parenthesized expression, it will be returned as is.
Sourcepub fn unwrap_parens_mut(&mut self) -> &mut Expr
 
pub fn unwrap_parens_mut(&mut self) -> &mut Expr
Normalize parenthesized expressions.
This will normalize (foo), ((foo)), … to foo.
If self is not a parenthesized expression, it will be returned as is.
Sourcepub fn unwrap_seqs_and_parens(&self) -> &Self
 
pub fn unwrap_seqs_and_parens(&self) -> &Self
Normalize sequences and parenthesized expressions.
This returns the last expression of a sequence expression or the expression of a parenthesized expression.
Sourcepub fn from_exprs(exprs: Vec<Box<Expr>>) -> Box<Expr>
 
pub fn from_exprs(exprs: Vec<Box<Expr>>) -> Box<Expr>
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.
pub fn directness_maters(&self) -> bool
directness_matters insteadSourcepub fn directness_matters(&self) -> bool
 
pub fn directness_matters(&self) -> bool
Returns true for eval and member expressions.
pub fn with_span(self, span: Span) -> Expr
pub fn set_span(&mut self, span: Span)
Trait Implementations§
Source§impl Archive for Expr
 
impl Archive for Expr
Source§type Archived = ArchivedExpr
 
type Archived = ArchivedExpr
Source§type Resolver = ExprResolver
 
type Resolver = ExprResolver
Source§fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
 
fn resolve(&self, resolver: Self::Resolver, out: Place<Self::Archived>)
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
 
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreSource§impl<'de> Deserialize<'de> for Expr
 
impl<'de> Deserialize<'de> for Expr
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Source§impl<__D: Fallible + ?Sized> Deserialize<Expr, __D> for Archived<Expr>where
    __D::Error: Source,
 
impl<__D: Fallible + ?Sized> Deserialize<Expr, __D> for Archived<Expr>where
    __D::Error: Source,
Source§impl EqIgnoreSpan for Expr
 
impl EqIgnoreSpan for Expr
fn eq_ignore_span(&self, other: &Self) -> bool
Source§impl From<(Atom, SyntaxContext)> for Expr
 
impl From<(Atom, SyntaxContext)> for Expr
Source§impl From<AssignExpr> for Expr
 
impl From<AssignExpr> for Expr
Source§fn from(v: AssignExpr) -> Self
 
fn from(v: AssignExpr) -> Self
Source§impl From<BigInt> for Expr
 
impl From<BigInt> for Expr
Source§fn from(src: BigIntValue) -> Expr
 
fn from(src: BigIntValue) -> Expr
Source§impl From<BindingIdent> for Box<Expr>
 
impl From<BindingIdent> for Box<Expr>
Source§fn from(bi: BindingIdent) -> Self
 
fn from(bi: BindingIdent) -> Self
Source§impl From<Box<JSXElement>> for Expr
 
impl From<Box<JSXElement>> for Expr
Source§fn from(v: Box<JSXElement>) -> Self
 
fn from(v: Box<JSXElement>) -> Self
Source§impl From<Expr> for ExprOrSpread
 
impl From<Expr> for ExprOrSpread
Source§fn from(src: Expr) -> ExprOrSpread
 
fn from(src: Expr) -> ExprOrSpread
Source§impl From<Expr> for VarDeclOrExpr
 
impl From<Expr> for VarDeclOrExpr
Source§fn from(src: Expr) -> VarDeclOrExpr
 
fn from(src: Expr) -> VarDeclOrExpr
Source§impl From<JSXEmptyExpr> for Expr
 
impl From<JSXEmptyExpr> for Expr
Source§fn from(v: JSXEmptyExpr) -> Self
 
fn from(v: JSXEmptyExpr) -> Self
Source§impl From<JSXFragment> for Expr
 
impl From<JSXFragment> for Expr
Source§fn from(v: JSXFragment) -> Self
 
fn from(v: JSXFragment) -> Self
Source§impl From<JSXMemberExpr> for Expr
 
impl From<JSXMemberExpr> for Expr
Source§fn from(v: JSXMemberExpr) -> Self
 
fn from(v: JSXMemberExpr) -> Self
Source§impl From<JSXNamespacedName> for Expr
 
impl From<JSXNamespacedName> for Expr
Source§fn from(v: JSXNamespacedName) -> Self
 
fn from(v: JSXNamespacedName) -> Self
Source§impl From<MemberExpr> for Expr
 
impl From<MemberExpr> for Expr
Source§fn from(v: MemberExpr) -> Self
 
fn from(v: MemberExpr) -> Self
Source§impl From<MetaPropExpr> for Expr
 
impl From<MetaPropExpr> for Expr
Source§fn from(v: MetaPropExpr) -> Self
 
fn from(v: MetaPropExpr) -> Self
Source§impl From<OptChainBase> for Expr
 
impl From<OptChainBase> for Expr
Source§fn from(opt: OptChainBase) -> Self
 
fn from(opt: OptChainBase) -> Self
Source§impl From<OptChainExpr> for Expr
 
impl From<OptChainExpr> for Expr
Source§fn from(v: OptChainExpr) -> Self
 
fn from(v: OptChainExpr) -> Self
Source§impl From<PrivateName> for Expr
 
impl From<PrivateName> for Expr
Source§fn from(v: PrivateName) -> Self
 
fn from(v: PrivateName) -> Self
Source§impl From<SimpleAssignTarget> for Box<Expr>
 
impl From<SimpleAssignTarget> for Box<Expr>
Source§fn from(s: SimpleAssignTarget) -> Self
 
fn from(s: SimpleAssignTarget) -> Self
Source§impl From<SuperPropExpr> for Expr
 
impl From<SuperPropExpr> for Expr
Source§fn from(v: SuperPropExpr) -> Self
 
fn from(v: SuperPropExpr) -> Self
Source§impl From<TsConstAssertion> for Expr
 
impl From<TsConstAssertion> for Expr
Source§fn from(v: TsConstAssertion) -> Self
 
fn from(v: TsConstAssertion) -> Self
Source§impl From<TsInstantiation> for Expr
 
impl From<TsInstantiation> for Expr
Source§fn from(v: TsInstantiation) -> Self
 
fn from(v: TsInstantiation) -> Self
Source§impl From<TsNonNullExpr> for Expr
 
impl From<TsNonNullExpr> for Expr
Source§fn from(v: TsNonNullExpr) -> Self
 
fn from(v: TsNonNullExpr) -> Self
Source§impl From<TsSatisfiesExpr> for Expr
 
impl From<TsSatisfiesExpr> for Expr
Source§fn from(v: TsSatisfiesExpr) -> Self
 
fn from(v: TsSatisfiesExpr) -> Self
Source§impl From<TsTypeAssertion> for Expr
 
impl From<TsTypeAssertion> for Expr
Source§fn from(v: TsTypeAssertion) -> Self
 
fn from(v: TsTypeAssertion) -> Self
Source§impl From<UpdateExpr> for Expr
 
impl From<UpdateExpr> for Expr
Source§fn from(v: UpdateExpr) -> Self
 
fn from(v: UpdateExpr) -> Self
Source§impl<__S> Serialize<__S> for Exprwhere
    __S: Writer + Allocator + Fallible + ?Sized,
    __S::Error: Source,
 
impl<__S> Serialize<__S> for Exprwhere
    __S: Writer + Allocator + Fallible + ?Sized,
    __S::Error: Source,
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§
§impl<T> ArchivePointee for T
 
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
 
type ArchivedMetadata = ()
§fn pointer_metadata(
    _: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
 
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
§impl<T> ArchiveUnsized for Twhere
    T: Archive,
 
impl<T> ArchiveUnsized for Twhere
    T: Archive,
§type Archived = <T as Archive>::Archived
 
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read more§fn archived_metadata(
    &self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
 
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<T> Conv for T
 
impl<T> Conv for T
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
 
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
 
fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
 
fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
 
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
 
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
 
fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
 
fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
 
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
 
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
 
fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> LayoutRaw for T
 
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
 
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
    T: SharedNiching<N1, N2>,
    N1: Niching<T>,
    N2: Niching<T>,
 
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
    T: SharedNiching<N1, N2>,
    N1: Niching<T>,
    N2: Niching<T>,
§impl<T> Pipe for Twhere
    T: ?Sized,
 
impl<T> Pipe for Twhere
    T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
 
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
 
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R,
) -> R
 
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
 
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
 
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
 
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> Pointee for T
 
impl<T> Pointee for T
§impl<T, S> SerializeUnsized<S> for Twhere
    T: Serialize<S>,
    S: Fallible + Writer + ?Sized,
 
impl<T, S> SerializeUnsized<S> for Twhere
    T: Serialize<S>,
    S: Fallible + Writer + ?Sized,
§fn serialize_unsized(
    &self,
    serializer: &mut S,
) -> Result<usize, <S as Fallible>::Error>
 
fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>
Source§impl<T> SpanExt for Twhere
    T: Spanned,
 
impl<T> SpanExt for Twhere
    T: Spanned,
fn is_synthesized(&self) -> bool
fn starts_on_new_line(&self, format: ListFormat) -> bool
Source§fn comment_range(&self) -> Span
 
fn comment_range(&self) -> Span
§impl<T> Tap for T
 
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
 
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
 
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
 
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.