pub struct FlagType {
pub symbol: WasmSymbol,
pub fields: BTreeMap<u64, EncodingType>,
pub span: FileSpan,
}Fields§
§symbol: WasmSymbol§fields: BTreeMap<u64, EncodingType>§span: FileSpanImplementations§
source§impl FlagType
impl FlagType
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<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for FlagTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for FlagTypewhere
'a: 'i,
fn as_wast(&'a self) -> ComponentDefinedType<'i>
Auto Trait Implementations§
impl RefUnwindSafe for FlagType
impl Send for FlagType
impl Sync for FlagType
impl Unpin for FlagType
impl UnwindSafe for FlagType
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