Enum wac_parser::WorldRef
source · pub enum WorldRef<'a> {
Ident(Ident<'a>),
Package(PackagePath<'a>),
}Expand description
Represents a reference to a world in the AST (local or foreign).
Variants§
Ident(Ident<'a>)
The reference is by identifier.
Package(PackagePath<'a>)
The reference is by package path.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for WorldRef<'a>
impl<'a> RefUnwindSafe for WorldRef<'a>
impl<'a> Send for WorldRef<'a>
impl<'a> Sync for WorldRef<'a>
impl<'a> Unpin for WorldRef<'a>
impl<'a> UnwindSafe for WorldRef<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)