Struct wasm_bindgen_backend::ast::Export[][src]

pub struct Export {
    pub class: Option<Ident>,
    pub method_self: Option<MethodSelf>,
    pub constructor: Option<String>,
    pub function: Function,
    pub comments: Vec<String>,
    pub rust_name: Ident,
}

A rust to js interface. Allows interaction with rust objects/functions from javascript.

Fields

The javascript class name.

The type of self (either self, &self, or &mut self)

The name of the constructor function (e.g. new).

This allows javascript to expose an Object interface, where calling the constructor maps correctly to rust.

The rust function

Comments extracted from the rust source.

The name of the rust function/method on the rust side.

Trait Implementations

impl Clone for Export
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl TryToTokens for Export
[src]

Auto Trait Implementations

impl !Send for Export

impl !Sync for Export