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<'de> Deserialize<'de> for WorldItem
impl<'de> Deserialize<'de> for WorldItem
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 Ord for WorldItem
impl Ord for WorldItem
Source§impl PartialOrd for WorldItem
impl PartialOrd for WorldItem
impl 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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.