Enum wasm_bindgen_backend::ast::OperationKind[][src]

pub enum OperationKind {
    Regular,
    Getter(Option<Ident>),
    Setter(Option<Ident>),
    IndexingGetter,
    IndexingSetter,
    IndexingDeleter,
}
Expand description

The kind of operation performed by a method

Variants

Regular

A standard method, nothing special

Getter

A method for getting the value of the provided Ident

Tuple Fields of Getter

0: Option<Ident>
Setter

A method for setting the value of the provided Ident

Tuple Fields of Setter

0: Option<Ident>
IndexingGetter

A dynamically intercepted getter

IndexingSetter

A dynamically intercepted setter

IndexingDeleter

A dynamically intercepted deleter

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.