Enum swc_ecma_ast::Prop [−][src]
pub enum Prop {
Shorthand(Ident),
KeyValue(KeyValueProp),
Assign(AssignProp),
Getter(GetterProp),
Setter(SetterProp),
Method(MethodProp),
}
Variants
a
in { a, }
Tuple Fields of Shorthand
0: Ident
key: value
in { key: value, }
Tuple Fields of KeyValue
0: KeyValueProp
This is invalid for object literal.
Tuple Fields of Assign
0: AssignProp
Tuple Fields of Getter
0: GetterProp
Tuple Fields of Setter
0: SetterProp
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