Struct wasm_component_layer::ResultValue
source · pub struct ResultValue { /* private fields */ }Expand description
Denotes a successful or unsuccessful operation, associated optionally with types.
Implementations§
source§impl ResultValue
impl ResultValue
sourcepub fn new(
ty: ResultType,
value: Result<Option<Value>, Option<Value>>
) -> Result<Self>
pub fn new( ty: ResultType, value: Result<Option<Value>, Option<Value>> ) -> Result<Self>
Creates a new result from the provided type and value. The value must match that which is described in the type.
sourcepub fn ty(&self) -> ResultType
pub fn ty(&self) -> ResultType
The type of this result.
Trait Implementations§
source§impl Clone for ResultValue
impl Clone for ResultValue
source§fn clone(&self) -> ResultValue
fn clone(&self) -> ResultValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResultValue
impl Debug for ResultValue
source§impl Deref for ResultValue
impl Deref for ResultValue
source§impl PartialEq<ResultValue> for ResultValue
impl PartialEq<ResultValue> for ResultValue
source§fn eq(&self, other: &ResultValue) -> bool
fn eq(&self, other: &ResultValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResultValue
Auto Trait Implementations§
impl !RefUnwindSafe for ResultValue
impl Send for ResultValue
impl Sync for ResultValue
impl Unpin for ResultValue
impl !UnwindSafe for ResultValue
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