pub struct Bindgen { /* private fields */ }

Implementations§

source§

impl Bindgen

source

pub fn new() -> Bindgen

source

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

source

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

source

pub fn reference_types(&mut self, enable: bool) -> &mut Bindgen

source

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

Explicitly specify the already parsed input module.

source

pub fn input_bytes(&mut self, name: &str, bytes: Vec<u8>) -> &mut Bindgen

Specify the input as the provided Wasm bytes.

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn deno(&mut self, deno: bool) -> Result<&mut Bindgen, Error>

source

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

source

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

source

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

source

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

source

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

source

pub fn keep_lld_exports(&mut self, keep_lld_exports: bool) -> &mut Bindgen

source

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

source

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

source

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

source

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

source

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

source

pub fn omit_default_module_path( &mut self, omit_default_module_path: bool ) -> &mut Bindgen

source

pub fn split_linked_modules( &mut self, split_linked_modules: bool ) -> &mut Bindgen

source

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

source

pub fn stem(&self) -> Result<&str, Error>

source

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.