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

pub struct Export {
    pub class: Option<Ident>,
    pub method_self: Option<MethodSelf>,
    pub is_constructor: bool,
    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)

Whether or not this export is flagged as a constructor, returning an instance of the impl type

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