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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.