pub struct GcResult(/* private fields */);
Implementations§
Source§impl GcResult
impl GcResult
Sourcepub fn into_module<T: Any>(self) -> Result<T, Self>
pub fn into_module<T: Any>(self) -> Result<T, Self>
Attepts to downcast this GcResult
into an instance of
parity_wasm::Module
.
If your crate’s parity_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.
Auto Trait Implementations§
impl Freeze for GcResult
impl RefUnwindSafe for GcResult
impl Send for GcResult
impl Sync for GcResult
impl Unpin for GcResult
impl UnwindSafe for GcResult
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