pub enum NameNamespace {
Global,
Player,
Subroutine,
}Expand description
The declaration namespace an identifier would occupy: globalvar,
playervar, or subroutine/def. The pinned upstream compiler reserves
a different name set per namespace, so a name refused for a globalvar
can still be a legal playervar name.
Variants§
Global
globalvar declarations — upstream reservedNames.
Player
playervar declarations — upstream reservedMemberNames.
Subroutine
subroutine/def declarations — upstream reservedSubroutineNames.
Trait Implementations§
Source§impl Clone for NameNamespace
impl Clone for NameNamespace
impl Copy for NameNamespace
Source§impl Debug for NameNamespace
impl Debug for NameNamespace
impl Eq for NameNamespace
Source§impl PartialEq for NameNamespace
impl PartialEq for NameNamespace
impl StructuralPartialEq for NameNamespace
Auto Trait Implementations§
impl Freeze for NameNamespace
impl RefUnwindSafe for NameNamespace
impl Send for NameNamespace
impl Sync for NameNamespace
impl Unpin for NameNamespace
impl UnsafeUnpin for NameNamespace
impl UnwindSafe for NameNamespace
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