Struct nyar_wasm::EnumerateType
source · pub struct EnumerateType {
pub symbol: WasmSymbol,
pub fields: BTreeMap<u64, EncodingType>,
pub span: FileSpan,
}Fields§
§symbol: WasmSymbol§fields: BTreeMap<u64, EncodingType>§span: FileSpanImplementations§
source§impl EnumerateType
impl EnumerateType
pub fn new<S: Into<WasmSymbol>>(name: S) -> Self
pub fn name(&self) -> String
pub fn set_field(&mut self, field: EncodingType)
pub fn with_fields<I>(self, fields: I) -> Selfwhere
I: IntoIterator<Item = EncodingType>,
Trait Implementations§
source§impl Clone for EnumerateType
impl Clone for EnumerateType
source§fn clone(&self) -> EnumerateType
fn clone(&self) -> EnumerateType
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 EnumerateType
impl Debug for EnumerateType
source§impl From<EnumerateType> for WasmType
impl From<EnumerateType> for WasmType
source§fn from(value: EnumerateType) -> Self
fn from(value: EnumerateType) -> Self
Converts to this type from the input type.
source§impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for EnumerateTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for EnumerateTypewhere
'a: 'i,
fn as_wast(&'a self) -> ComponentDefinedType<'i>
source§impl<'a, 'i> IntoWasm<'a, Enum<'i>> for EnumerateTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, Enum<'i>> for EnumerateTypewhere
'a: 'i,
source§impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateTypewhere
'a: 'i,
source§impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateTypewhere
'a: 'i,
source§impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for EnumerateTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for EnumerateTypewhere
'a: 'i,
Auto Trait Implementations§
impl RefUnwindSafe for EnumerateType
impl Send for EnumerateType
impl Sync for EnumerateType
impl Unpin for EnumerateType
impl UnwindSafe for EnumerateType
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