Enum badger::grammar::ObjectMember
[−]
[src]
pub enum ObjectMember { Shorthand { key: OwnedSlice, }, Literal { key: OwnedSlice, value: Expression, }, Computed { key: Expression, value: Expression, }, Method { name: OwnedSlice, params: Vec<Parameter>, body: Vec<Statement>, }, ComputedMethod { name: Expression, params: Vec<Parameter>, body: Vec<Statement>, }, }
Variants
Shorthand
Fields of Shorthand
key: OwnedSlice |
Literal
Fields of Literal
key: OwnedSlice | |
value: Expression |
Computed
Fields of Computed
key: Expression | |
value: Expression |
Method
Fields of Method
name: OwnedSlice | |
params: Vec<Parameter> | |
body: Vec<Statement> |
ComputedMethod
Fields of ComputedMethod
name: Expression | |
params: Vec<Parameter> | |
body: Vec<Statement> |
Trait Implementations
impl Debug for ObjectMember
[src]
impl PartialEq for ObjectMember
[src]
fn eq(&self, __arg_0: &ObjectMember) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ObjectMember) -> bool
This method tests for !=
.
impl Clone for ObjectMember
[src]
fn clone(&self) -> ObjectMember
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more