Enum cpp_demangle::ast::UnresolvedName
source · 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<UnresolvedName> for UnresolvedName
impl PartialEq<UnresolvedName> for UnresolvedName
source§fn eq(&self, other: &UnresolvedName) -> bool
fn eq(&self, other: &UnresolvedName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnresolvedName
impl StructuralEq for UnresolvedName
impl StructuralPartialEq for UnresolvedName
Auto Trait Implementations§
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