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