Enum wit_encoder::WorldItem
source · pub enum WorldItem {
InlineInterfaceImport(Interface),
InlineInterfaceExport(Interface),
NamedInterfaceImport(WorldNamedInterface),
NamedInterfaceExport(WorldNamedInterface),
FunctionImport(StandaloneFunc),
FunctionExport(StandaloneFunc),
Include(Include),
}
Variants§
InlineInterfaceImport(Interface)
An imported inline interface
InlineInterfaceExport(Interface)
An exported inline interface
NamedInterfaceImport(WorldNamedInterface)
Refers to a named interface import
NamedInterfaceExport(WorldNamedInterface)
Refers to a named interface export
FunctionImport(StandaloneFunc)
A function is being directly imported from this world.
FunctionExport(StandaloneFunc)
A function is being directly exported from this world.
Include(Include)
Include type
Implementations§
source§impl WorldItem
impl WorldItem
pub fn inline_interface_import(value: Interface) -> Self
pub fn inline_interface_export(value: Interface) -> Self
pub fn named_interface_import(value: impl Into<WorldNamedInterface>) -> Self
pub fn named_interface_export(value: impl Into<WorldNamedInterface>) -> Self
pub fn function_import(value: StandaloneFunc) -> Self
pub fn function_export(value: StandaloneFunc) -> Self
pub fn include(value: impl Into<Ident>) -> Self
Trait Implementations§
source§impl Ord for WorldItem
impl Ord for WorldItem
source§impl PartialEq for WorldItem
impl PartialEq for WorldItem
source§impl PartialOrd for WorldItem
impl PartialOrd for WorldItem
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for WorldItem
impl StructuralPartialEq for WorldItem
Auto Trait Implementations§
impl Freeze for WorldItem
impl RefUnwindSafe for WorldItem
impl Send for WorldItem
impl Sync for WorldItem
impl Unpin for WorldItem
impl UnwindSafe for WorldItem
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)