Enum ratel::grammar::ObjectMember [] [src]

pub enum ObjectMember {
    Shorthand {
        key: OwnedSlice,
    },
    Value {
        key: ObjectKey,
        value: Expression,
    },
    Method {
        key: ObjectKey,
        params: Vec<Parameter>,
        body: Vec<Statement>,
    },
}

Variants

Fields of Shorthand

Fields of Value

Fields of Method

Trait Implementations

impl Debug for ObjectMember
[src]

Formats the value using the given formatter.

impl PartialEq for ObjectMember
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ObjectMember
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more