[][src]Struct wasm_bindgen_cli_support::Bindgen

pub struct Bindgen { /* fields omitted */ }

Methods

impl Bindgen[src]

pub fn new() -> Bindgen[src]

pub fn input_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Bindgen[src]

pub fn out_name(&mut self, name: &str) -> &mut Bindgen[src]

pub fn input_module(&mut self, name: &str, module: Module) -> &mut Bindgen[src]

Explicitly specify the already parsed input module.

pub fn nodejs(&mut self, node: bool) -> Result<&mut Bindgen, Error>[src]

pub fn nodejs_experimental_modules(
    &mut self,
    node: bool
) -> Result<&mut Bindgen, Error>
[src]

pub fn bundler(&mut self, bundler: bool) -> Result<&mut Bindgen, Error>[src]

pub fn web(&mut self, web: bool) -> Result<&mut Bindgen, Error>[src]

pub fn no_modules(&mut self, no_modules: bool) -> Result<&mut Bindgen, Error>[src]

pub fn browser(&mut self, browser: bool) -> Result<&mut Bindgen, Error>[src]

pub fn no_modules_global(&mut self, name: &str) -> Result<&mut Bindgen, Error>[src]

pub fn debug(&mut self, debug: bool) -> &mut Bindgen[src]

pub fn typescript(&mut self, typescript: bool) -> &mut Bindgen[src]

pub fn omit_imports(&mut self, omit_imports: bool) -> &mut Bindgen[src]

pub fn demangle(&mut self, demangle: bool) -> &mut Bindgen[src]

pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Bindgen[src]

pub fn remove_name_section(&mut self, remove: bool) -> &mut Bindgen[src]

pub fn remove_producers_section(&mut self, remove: bool) -> &mut Bindgen[src]

pub fn emit_start(&mut self, emit: bool) -> &mut Bindgen[src]

pub fn encode_into(&mut self, mode: EncodeInto) -> &mut Bindgen[src]

pub fn generate<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error>[src]

pub fn generate_output(&mut self) -> Result<Output, Error>[src]

Auto Trait Implementations

impl !RefUnwindSafe for Bindgen

impl Send for Bindgen

impl Sync for Bindgen

impl Unpin for Bindgen

impl !UnwindSafe for Bindgen

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,