pub struct Bindgen { /* private fields */ }Implementations§
Source§impl Bindgen
impl Bindgen
pub fn new() -> Bindgen
pub fn input_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Bindgen
pub fn out_name(&mut self, name: &str) -> &mut Bindgen
pub fn reference_types(&mut self, enable: bool) -> &mut Bindgen
👎Deprecated: automatically detected via
-Ctarget-feature=+reference-typesSourcepub fn input_module(&mut self, name: &str, module: Module) -> &mut Bindgen
pub fn input_module(&mut self, name: &str, module: Module) -> &mut Bindgen
Explicitly specify the already parsed input module.
Sourcepub fn input_bytes(&mut self, name: &str, bytes: Vec<u8>) -> &mut Bindgen
pub fn input_bytes(&mut self, name: &str, bytes: Vec<u8>) -> &mut Bindgen
Specify the input as the provided Wasm bytes.
pub fn nodejs(&mut self, node: bool) -> Result<&mut Bindgen, Error>
pub fn nodejs_module(&mut self, node: bool) -> Result<&mut Bindgen, Error>
pub fn bundler(&mut self, bundler: bool) -> Result<&mut Bindgen, Error>
pub fn web(&mut self, web: bool) -> Result<&mut Bindgen, Error>
pub fn no_modules(&mut self, no_modules: bool) -> Result<&mut Bindgen, Error>
pub fn browser(&mut self, browser: bool) -> Result<&mut Bindgen, Error>
pub fn deno(&mut self, deno: bool) -> Result<&mut Bindgen, Error>
pub fn module(&mut self, source_phase: bool) -> Result<&mut Bindgen, Error>
pub fn no_modules_global(&mut self, name: &str) -> Result<&mut Bindgen, Error>
pub fn debug(&mut self, debug: bool) -> &mut Bindgen
pub fn typescript(&mut self, typescript: bool) -> &mut Bindgen
pub fn omit_imports(&mut self, omit_imports: bool) -> &mut Bindgen
pub fn demangle(&mut self, demangle: bool) -> &mut Bindgen
pub fn keep_lld_exports(&mut self, keep_lld_exports: bool) -> &mut Bindgen
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Bindgen
pub fn remove_name_section(&mut self, remove: bool) -> &mut Bindgen
pub fn remove_producers_section(&mut self, remove: bool) -> &mut Bindgen
pub fn emit_start(&mut self, emit: bool) -> &mut Bindgen
pub fn encode_into(&mut self, mode: EncodeInto) -> &mut Bindgen
pub fn omit_default_module_path( &mut self, omit_default_module_path: bool, ) -> &mut Bindgen
pub fn split_linked_modules( &mut self, split_linked_modules: bool, ) -> &mut Bindgen
pub fn reset_state_function( &mut self, generate_reset_state: bool, ) -> &mut Bindgen
pub fn generate<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error>
pub fn stem(&self) -> Result<&str, Error>
pub fn generate_output(&mut self) -> Result<Output, Error>
Auto Trait Implementations§
impl Freeze for Bindgen
impl !RefUnwindSafe for Bindgen
impl Send for Bindgen
impl Sync for Bindgen
impl Unpin for Bindgen
impl UnsafeUnpin for Bindgen
impl !UnwindSafe for Bindgen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more