Struct wasm_component_layer::VariantCase
source · pub struct VariantCase { /* private fields */ }
Expand description
Describes a single branch of a variant.
Implementations§
Trait Implementations§
source§impl Clone for VariantCase
impl Clone for VariantCase
source§fn clone(&self) -> VariantCase
fn clone(&self) -> VariantCase
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 VariantCase
impl Debug for VariantCase
source§impl Hash for VariantCase
impl Hash for VariantCase
source§impl PartialEq<VariantCase> for VariantCase
impl PartialEq<VariantCase> for VariantCase
source§fn eq(&self, other: &VariantCase) -> bool
fn eq(&self, other: &VariantCase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VariantCase
impl StructuralEq for VariantCase
impl StructuralPartialEq for VariantCase
Auto Trait Implementations§
impl !RefUnwindSafe for VariantCase
impl Send for VariantCase
impl Sync for VariantCase
impl Unpin for VariantCase
impl !UnwindSafe for VariantCase
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.