pub enum WasmCompositeInnerType {
Array(WasmArrayType),
Func(WasmFuncType),
Struct(WasmStructType),
}
Expand description
A function, array, or struct type.
Variants§
Implementations§
source§impl WasmCompositeInnerType
impl WasmCompositeInnerType
pub fn is_array(&self) -> bool
pub fn as_array(&self) -> Option<&WasmArrayType>
pub fn unwrap_array(&self) -> &WasmArrayType
pub fn is_func(&self) -> bool
pub fn as_func(&self) -> Option<&WasmFuncType>
pub fn unwrap_func(&self) -> &WasmFuncType
pub fn is_struct(&self) -> bool
pub fn as_struct(&self) -> Option<&WasmStructType>
pub fn unwrap_struct(&self) -> &WasmStructType
Trait Implementations§
source§impl Clone for WasmCompositeInnerType
impl Clone for WasmCompositeInnerType
source§fn clone(&self) -> WasmCompositeInnerType
fn clone(&self) -> WasmCompositeInnerType
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 WasmCompositeInnerType
impl Debug for WasmCompositeInnerType
source§impl<'de> Deserialize<'de> for WasmCompositeInnerType
impl<'de> Deserialize<'de> for WasmCompositeInnerType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for WasmCompositeInnerType
impl Display for WasmCompositeInnerType
source§impl Hash for WasmCompositeInnerType
impl Hash for WasmCompositeInnerType
source§impl PartialEq for WasmCompositeInnerType
impl PartialEq for WasmCompositeInnerType
source§impl Serialize for WasmCompositeInnerType
impl Serialize for WasmCompositeInnerType
impl Eq for WasmCompositeInnerType
impl StructuralPartialEq for WasmCompositeInnerType
Auto Trait Implementations§
impl Freeze for WasmCompositeInnerType
impl RefUnwindSafe for WasmCompositeInnerType
impl Send for WasmCompositeInnerType
impl Sync for WasmCompositeInnerType
impl Unpin for WasmCompositeInnerType
impl UnwindSafe for WasmCompositeInnerType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.