Enum swc_ecma_ast::Prop [−][src]
pub enum Prop {
Shorthand(Ident),
KeyValue(KeyValueProp),
Assign(AssignProp),
Getter(GetterProp),
Setter(SetterProp),
Method(MethodProp),
}
Variants
Shorthand(Ident)
a
in { a, }
Tuple Fields of Shorthand
0: Ident
KeyValue(KeyValueProp)
key: value
in { key: value, }
Tuple Fields of KeyValue
0: KeyValueProp
Assign(AssignProp)
This is invalid for object literal.
Tuple Fields of Assign
0: AssignProp
Getter(GetterProp)
Tuple Fields of Getter
0: GetterProp
Setter(SetterProp)
Tuple Fields of Setter
0: SetterProp
Method(MethodProp)
Tuple Fields of Method
0: MethodProp
Implementations
Returns true
if self
is of variant Shorthand
.
Returns Some
if self
is of variant Shorthand
, and None
otherwise.
Returns true
if self
is of variant KeyValue
.
Returns Some
if self
is of variant KeyValue
, and None
otherwise.
Returns Some
if self
is of variant Assign
, and None
otherwise.
Returns Some
if self
is of variant Getter
, and None
otherwise.
Returns Some
if self
is of variant Setter
, and None
otherwise.
Returns Some
if self
is of variant Method
, and None
otherwise.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Prop
impl UnwindSafe for Prop
Blanket Implementations
Mutably borrows from an owned value. Read more
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