Struct wast::component::ResultType
source · [−]pub struct ResultType<'a> {
pub ok: Option<Box<ComponentValType<'a>>>,
pub err: Option<Box<ComponentValType<'a>>>,
}
Expand description
A result type.
Fields
ok: Option<Box<ComponentValType<'a>>>
The type on success.
err: Option<Box<ComponentValType<'a>>>
The type on failure.
Trait Implementations
sourceimpl<'a> Debug for ResultType<'a>
impl<'a> Debug for ResultType<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ResultType<'a>
impl<'a> Send for ResultType<'a>
impl<'a> Sync for ResultType<'a>
impl<'a> Unpin for ResultType<'a>
impl<'a> UnwindSafe for ResultType<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more