Struct tetsy_wasm_gc::Config [−][src]
Implementations
impl Config
[src]
pub fn new() -> Config
[src]
Creates a blank slate of configuration, ready to gc wasm files.
pub fn demangle(&mut self, demangle: bool) -> &mut Self
[src]
Configures whether or not this will demangle symbols as part of the gc pass.
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Self
[src]
Configures whether or not debug sections will be preserved.
pub fn run<T: Any>(
&mut self,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> Result<GcResult, Error>
[src]
&mut self,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> Result<GcResult, Error>
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,