Enum swc_ecma_ast::Expr
source · [−]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>),
JSXFragment(JSXFragment),
TsTypeAssertion(TsTypeAssertion),
TsConstAssertion(TsConstAssertion),
TsNonNull(TsNonNullExpr),
TsAs(TsAsExpr),
TsInstantiation(TsInstantiation),
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)
PrivateName(PrivateName)
OptChain(OptChainExpr)
Invalid(Invalid)
Implementations
sourceimpl 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) -> ThisExpr where
Self: Debug,
pub fn expect_this(self) -> ThisExpr where
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) -> ArrayLit where
Self: Debug,
pub fn expect_array(self) -> ArrayLit where
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) -> ObjectLit where
Self: Debug,
pub fn expect_object(self) -> ObjectLit where
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 fn is_fn_expr(&self) -> bool
pub 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) -> FnExpr where
Self: Debug,
pub fn expect_fn_expr(self) -> FnExpr where
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) -> UnaryExpr where
Self: Debug,
pub fn expect_unary(self) -> UnaryExpr where
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) -> UpdateExpr where
Self: Debug,
pub fn expect_update(self) -> UpdateExpr where
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) -> BinExpr where
Self: Debug,
pub fn expect_bin(self) -> BinExpr where
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) -> AssignExpr where
Self: Debug,
pub fn expect_assign(self) -> AssignExpr where
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) -> MemberExpr where
Self: Debug,
pub fn expect_member(self) -> MemberExpr where
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 fn is_super_prop(&self) -> bool
pub 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) -> SuperPropExpr where
Self: Debug,
pub fn expect_super_prop(self) -> SuperPropExpr where
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) -> CondExpr where
Self: Debug,
pub fn expect_cond(self) -> CondExpr where
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) -> CallExpr where
Self: Debug,
pub fn expect_call(self) -> CallExpr where
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) -> NewExpr where
Self: Debug,
pub fn expect_new(self) -> NewExpr where
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) -> SeqExpr where
Self: Debug,
pub fn expect_seq(self) -> SeqExpr where
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) -> Ident where
Self: Debug,
pub fn expect_ident(self) -> Ident where
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) -> Lit where
Self: Debug,
pub fn expect_lit(self) -> Lit where
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) -> Tpl where
Self: Debug,
pub fn expect_tpl(self) -> Tpl where
Self: Debug,
sourcepub fn is_tagged_tpl(&self) -> bool
pub 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) -> TaggedTpl where
Self: Debug,
pub fn expect_tagged_tpl(self) -> TaggedTpl where
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) -> ArrowExpr where
Self: Debug,
pub fn expect_arrow(self) -> ArrowExpr where
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) -> ClassExpr where
Self: Debug,
pub fn expect_class(self) -> ClassExpr where
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 fn is_yield_expr(&self) -> bool
pub 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) -> YieldExpr where
Self: Debug,
pub fn expect_yield_expr(self) -> YieldExpr where
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 fn is_meta_prop(&self) -> bool
pub 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) -> MetaPropExpr where
Self: Debug,
pub fn expect_meta_prop(self) -> MetaPropExpr where
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 fn is_await_expr(&self) -> bool
pub 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) -> AwaitExpr where
Self: Debug,
pub fn expect_await_expr(self) -> AwaitExpr where
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) -> ParenExpr where
Self: Debug,
pub fn expect_paren(self) -> ParenExpr where
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 fn is_jsx_member(&self) -> bool
pub 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) -> JSXMemberExpr where
Self: Debug,
pub fn expect_jsx_member(self) -> JSXMemberExpr where
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 fn is_jsx_namespaced_name(&self) -> bool
pub 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) -> JSXNamespacedName where
Self: Debug,
pub fn expect_jsx_namespaced_name(self) -> JSXNamespacedName where
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 fn is_jsx_empty(&self) -> bool
pub 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) -> JSXEmptyExpr where
Self: Debug,
pub fn expect_jsx_empty(self) -> JSXEmptyExpr where
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 fn is_jsx_element(&self) -> bool
pub 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 fn is_jsx_fragment(&self) -> bool
pub 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) -> JSXFragment where
Self: Debug,
pub fn expect_jsx_fragment(self) -> JSXFragment where
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 fn is_ts_type_assertion(&self) -> bool
pub 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) -> TsTypeAssertion where
Self: Debug,
pub fn expect_ts_type_assertion(self) -> TsTypeAssertion where
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 fn is_ts_const_assertion(&self) -> bool
pub 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) -> TsConstAssertion where
Self: Debug,
pub fn expect_ts_const_assertion(self) -> TsConstAssertion where
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 fn is_ts_non_null(&self) -> bool
pub 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) -> TsNonNullExpr where
Self: Debug,
pub fn expect_ts_non_null(self) -> TsNonNullExpr where
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) -> TsAsExpr where
Self: Debug,
pub fn expect_ts_as(self) -> TsAsExpr where
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 fn is_ts_instantiation(&self) -> bool
pub 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) -> TsInstantiation where
Self: Debug,
pub fn expect_ts_instantiation(self) -> TsInstantiation where
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 fn is_private_name(&self) -> bool
pub 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) -> PrivateName where
Self: Debug,
pub fn expect_private_name(self) -> PrivateName where
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 fn is_opt_chain(&self) -> bool
pub 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) -> OptChainExpr where
Self: Debug,
pub fn expect_opt_chain(self) -> OptChainExpr where
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 fn is_invalid(&self) -> bool
pub 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) -> Invalid where
Self: Debug,
pub fn expect_invalid(self) -> Invalid where
Self: Debug,
sourceimpl Expr
impl 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.
Trait Implementations
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for Expr
impl<'arbitrary> Arbitrary<'arbitrary> for Expr
sourcefn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the given unstructured data. Read more
sourcefn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of Self
from the entirety of the given
unstructured data. Read more
sourceimpl Archive for Expr
impl Archive for Expr
sourceimpl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<__D: Fallible + ?Sized> Deserialize<Expr, __D> for Archived<Expr> where
__D: SharedDeserializeRegistry,
impl<__D: Fallible + ?Sized> Deserialize<Expr, __D> for Archived<Expr> where
__D: SharedDeserializeRegistry,
sourceimpl EqIgnoreSpan for Expr
impl EqIgnoreSpan for Expr
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<(Atom<JsWordStaticSet>, SyntaxContext)> for Box<Expr>
impl From<(Atom<JsWordStaticSet>, SyntaxContext)> for Box<Expr>
sourceimpl From<(Atom<JsWordStaticSet>, SyntaxContext)> for Expr
impl From<(Atom<JsWordStaticSet>, SyntaxContext)> for Expr
sourceimpl From<AssignExpr> for Box<Expr>
impl From<AssignExpr> for Box<Expr>
sourcefn from(src: AssignExpr) -> Box<Expr>
fn from(src: AssignExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<AssignExpr> for Expr
impl From<AssignExpr> for Expr
sourcefn from(v: AssignExpr) -> Self
fn from(v: AssignExpr) -> Self
Converts to this type from the input type.
sourceimpl From<Atom<JsWordStaticSet>> for Box<Expr>
impl From<Atom<JsWordStaticSet>> for Box<Expr>
sourceimpl From<Atom<JsWordStaticSet>> for Expr
impl From<Atom<JsWordStaticSet>> for Expr
sourceimpl From<BigInt> for Box<Expr>
impl From<BigInt> for Box<Expr>
sourcefn from(src: BigIntValue) -> Box<Expr>
fn from(src: BigIntValue) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<BigInt> for Expr
impl From<BigInt> for Expr
sourcefn from(src: BigIntValue) -> Expr
fn from(src: BigIntValue) -> Expr
Converts to this type from the input type.
sourceimpl From<Box<JSXElement, Global>> for Expr
impl From<Box<JSXElement, Global>> for Expr
sourcefn from(v: Box<JSXElement>) -> Self
fn from(v: Box<JSXElement>) -> Self
Converts to this type from the input type.
sourceimpl From<Expr> for ExprOrSpread
impl From<Expr> for ExprOrSpread
sourceimpl From<JSXEmptyExpr> for Box<Expr>
impl From<JSXEmptyExpr> for Box<Expr>
sourcefn from(src: JSXEmptyExpr) -> Box<Expr>
fn from(src: JSXEmptyExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<JSXEmptyExpr> for Expr
impl From<JSXEmptyExpr> for Expr
sourcefn from(v: JSXEmptyExpr) -> Self
fn from(v: JSXEmptyExpr) -> Self
Converts to this type from the input type.
sourceimpl From<JSXFragment> for Box<Expr>
impl From<JSXFragment> for Box<Expr>
sourcefn from(src: JSXFragment) -> Box<Expr>
fn from(src: JSXFragment) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<JSXFragment> for Expr
impl From<JSXFragment> for Expr
sourcefn from(v: JSXFragment) -> Self
fn from(v: JSXFragment) -> Self
Converts to this type from the input type.
sourceimpl From<JSXMemberExpr> for Box<Expr>
impl From<JSXMemberExpr> for Box<Expr>
sourcefn from(src: JSXMemberExpr) -> Box<Expr>
fn from(src: JSXMemberExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<JSXMemberExpr> for Expr
impl From<JSXMemberExpr> for Expr
sourcefn from(v: JSXMemberExpr) -> Self
fn from(v: JSXMemberExpr) -> Self
Converts to this type from the input type.
sourceimpl From<JSXNamespacedName> for Box<Expr>
impl From<JSXNamespacedName> for Box<Expr>
sourcefn from(src: JSXNamespacedName) -> Box<Expr>
fn from(src: JSXNamespacedName) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<JSXNamespacedName> for Expr
impl From<JSXNamespacedName> for Expr
sourcefn from(v: JSXNamespacedName) -> Self
fn from(v: JSXNamespacedName) -> Self
Converts to this type from the input type.
sourceimpl From<MemberExpr> for Box<Expr>
impl From<MemberExpr> for Box<Expr>
sourcefn from(src: MemberExpr) -> Box<Expr>
fn from(src: MemberExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<MemberExpr> for Expr
impl From<MemberExpr> for Expr
sourcefn from(v: MemberExpr) -> Self
fn from(v: MemberExpr) -> Self
Converts to this type from the input type.
sourceimpl From<MetaPropExpr> for Box<Expr>
impl From<MetaPropExpr> for Box<Expr>
sourcefn from(src: MetaPropExpr) -> Box<Expr>
fn from(src: MetaPropExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<MetaPropExpr> for Expr
impl From<MetaPropExpr> for Expr
sourcefn from(v: MetaPropExpr) -> Self
fn from(v: MetaPropExpr) -> Self
Converts to this type from the input type.
sourceimpl From<OptChainBase> for Expr
impl From<OptChainBase> for Expr
sourcefn from(opt: OptChainBase) -> Self
fn from(opt: OptChainBase) -> Self
Converts to this type from the input type.
sourceimpl From<OptChainExpr> for Box<Expr>
impl From<OptChainExpr> for Box<Expr>
sourcefn from(src: OptChainExpr) -> Box<Expr>
fn from(src: OptChainExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<OptChainExpr> for Expr
impl From<OptChainExpr> for Expr
sourcefn from(v: OptChainExpr) -> Self
fn from(v: OptChainExpr) -> Self
Converts to this type from the input type.
sourceimpl From<PrivateName> for Box<Expr>
impl From<PrivateName> for Box<Expr>
sourcefn from(src: PrivateName) -> Box<Expr>
fn from(src: PrivateName) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<PrivateName> for Expr
impl From<PrivateName> for Expr
sourcefn from(v: PrivateName) -> Self
fn from(v: PrivateName) -> Self
Converts to this type from the input type.
sourceimpl From<SuperPropExpr> for Box<Expr>
impl From<SuperPropExpr> for Box<Expr>
sourcefn from(src: SuperPropExpr) -> Box<Expr>
fn from(src: SuperPropExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<SuperPropExpr> for Expr
impl From<SuperPropExpr> for Expr
sourcefn from(v: SuperPropExpr) -> Self
fn from(v: SuperPropExpr) -> Self
Converts to this type from the input type.
sourceimpl From<TsConstAssertion> for Box<Expr>
impl From<TsConstAssertion> for Box<Expr>
sourcefn from(src: TsConstAssertion) -> Box<Expr>
fn from(src: TsConstAssertion) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<TsConstAssertion> for Expr
impl From<TsConstAssertion> for Expr
sourcefn from(v: TsConstAssertion) -> Self
fn from(v: TsConstAssertion) -> Self
Converts to this type from the input type.
sourceimpl From<TsInstantiation> for Box<Expr>
impl From<TsInstantiation> for Box<Expr>
sourcefn from(src: TsInstantiation) -> Box<Expr>
fn from(src: TsInstantiation) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<TsInstantiation> for Expr
impl From<TsInstantiation> for Expr
sourcefn from(v: TsInstantiation) -> Self
fn from(v: TsInstantiation) -> Self
Converts to this type from the input type.
sourceimpl From<TsNonNullExpr> for Box<Expr>
impl From<TsNonNullExpr> for Box<Expr>
sourcefn from(src: TsNonNullExpr) -> Box<Expr>
fn from(src: TsNonNullExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<TsNonNullExpr> for Expr
impl From<TsNonNullExpr> for Expr
sourcefn from(v: TsNonNullExpr) -> Self
fn from(v: TsNonNullExpr) -> Self
Converts to this type from the input type.
sourceimpl From<TsTypeAssertion> for Box<Expr>
impl From<TsTypeAssertion> for Box<Expr>
sourcefn from(src: TsTypeAssertion) -> Box<Expr>
fn from(src: TsTypeAssertion) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<TsTypeAssertion> for Expr
impl From<TsTypeAssertion> for Expr
sourcefn from(v: TsTypeAssertion) -> Self
fn from(v: TsTypeAssertion) -> Self
Converts to this type from the input type.
sourceimpl From<UpdateExpr> for Box<Expr>
impl From<UpdateExpr> for Box<Expr>
sourcefn from(src: UpdateExpr) -> Box<Expr>
fn from(src: UpdateExpr) -> Box<Expr>
Converts to this type from the input type.
sourceimpl From<UpdateExpr> for Expr
impl From<UpdateExpr> for Expr
sourcefn from(v: UpdateExpr) -> Self
fn from(v: UpdateExpr) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Expr> for Expr
impl PartialEq<Expr> for Expr
sourceimpl<__S: Fallible + ?Sized> Serialize<__S> for Expr where
__S: Serializer + ScratchSpace + SharedSerializeRegistry,
impl<__S: Fallible + ?Sized> Serialize<__S> for Expr where
__S: Serializer + ScratchSpace + SharedSerializeRegistry,
impl Eq for Expr
impl StructuralEq for Expr
impl StructuralPartialEq for Expr
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> ArchiveUnsized for T where
T: Archive,
impl<T> ArchiveUnsized for T where
T: Archive,
type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike Archive
, it may be unsized. Read more
type MetadataResolver = ()
type MetadataResolver = ()
The resolver for the metadata of this type. Read more
sourceunsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
unsafe fn resolve_metadata(
&self,
usize,
<T as ArchiveUnsized>::MetadataResolver,
*mut <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
)
Creates the archived version of the metadata for this value at the given position and writes it to the given output. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
impl<T, S> SerializeUnsized<S> for T where
T: Serialize<S>,
S: Serializer + ?Sized,
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more