pub enum UnresolvedName {
Name(BaseUnresolvedName),
Global(BaseUnresolvedName),
Nested1(UnresolvedTypeHandle, Vec<UnresolvedQualifierLevel>, BaseUnresolvedName),
Nested2(Vec<UnresolvedQualifierLevel>, BaseUnresolvedName),
GlobalNested2(Vec<UnresolvedQualifierLevel>, BaseUnresolvedName),
}
Expand description
The <unresolved-name>
production.
<unresolved-name> ::= [gs] <base-unresolved-name>
#
::= sr <unresolved-type> <base-unresolved-name>
#
::= srN <unresolved-type> <unresolved-qualifier-level>+ E <base-unresolved-name>
#
::= [gs] sr <unresolved-qualifier-level>+ E <base-unresolved-name>
# A::x, N::y, A<T>::z; "gs" means leading "::"
Variants§
Name(BaseUnresolvedName)
x
Global(BaseUnresolvedName)
::x
Nested1(UnresolvedTypeHandle, Vec<UnresolvedQualifierLevel>, BaseUnresolvedName)
T::x
or decltype(p)::x
or T::N::x
or decltype(p)::N::x
Nested2(Vec<UnresolvedQualifierLevel>, BaseUnresolvedName)
A::x
or N::y
or A<T>::z
GlobalNested2(Vec<UnresolvedQualifierLevel>, BaseUnresolvedName)
::A::x
or ::N::y
or ::A<T>::z
Trait Implementations§
Source§impl Clone for UnresolvedName
impl Clone for UnresolvedName
Source§fn clone(&self) -> UnresolvedName
fn clone(&self) -> UnresolvedName
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnresolvedName
impl Debug for UnresolvedName
Source§impl PartialEq for UnresolvedName
impl PartialEq for UnresolvedName
impl Eq for UnresolvedName
impl StructuralPartialEq for UnresolvedName
Auto Trait Implementations§
impl Freeze for UnresolvedName
impl RefUnwindSafe for UnresolvedName
impl Send for UnresolvedName
impl Sync for UnresolvedName
impl Unpin for UnresolvedName
impl UnwindSafe for UnresolvedName
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