Struct tetsy_wasm_gc::GcResult [−][src]
Implementations
impl GcResult
[src]
pub fn into_module<T: Any>(self) -> Result<T, Self>
[src]
Attepts to downcast this GcResult
into an instance of
tetsy_wasm::Module
.
If your crate’s tetsy_wasm
crate is a different version than this
crate then this method will fail and you’ll need to use into_bytes
.
Otherwise the module is successfully extracted and returned.
pub fn into_bytes(self) -> Result<Vec<u8>, Error>
[src]
Convert this GcResult
into a serialized wasm module.
Returns any error that happens during serialization, which shouldn’t happen for valid modules.
Auto Trait Implementations
impl RefUnwindSafe for GcResult
impl Send for GcResult
impl Sync for GcResult
impl Unpin for GcResult
impl UnwindSafe for GcResult
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>,