Enum cpp_demangle::ast::NestedName
source · pub enum NestedName {
Unqualified(CvQualifiers, Option<RefQualifier>, PrefixHandle, UnqualifiedName),
Template(CvQualifiers, Option<RefQualifier>, PrefixHandle),
}
Expand description
The <nested-name>
production.
<nested-name> ::= N [<CV-qualifiers>] [<ref-qualifier>] <prefix> <unqualified-name> E
::= N [<CV-qualifiers>] [<ref-qualifier>] <template-prefix> <template-args> E
Variants§
Unqualified(CvQualifiers, Option<RefQualifier>, PrefixHandle, UnqualifiedName)
A nested name.
Template(CvQualifiers, Option<RefQualifier>, PrefixHandle)
A nested template name. The <template-args>
are part of the PrefixHandle
.
Implementations§
source§impl NestedName
impl NestedName
sourcepub fn cv_qualifiers(&self) -> &CvQualifiers
pub fn cv_qualifiers(&self) -> &CvQualifiers
Get the CV-qualifiers for this name.
sourcepub fn ref_qualifier(&self) -> Option<&RefQualifier>
pub fn ref_qualifier(&self) -> Option<&RefQualifier>
Get the ref-qualifier for this name, if one exists.
Trait Implementations§
source§impl Clone for NestedName
impl Clone for NestedName
source§fn clone(&self) -> NestedName
fn clone(&self) -> NestedName
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 NestedName
impl Debug for NestedName
source§impl PartialEq<NestedName> for NestedName
impl PartialEq<NestedName> for NestedName
source§fn eq(&self, other: &NestedName) -> bool
fn eq(&self, other: &NestedName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NestedName
impl StructuralEq for NestedName
impl StructuralPartialEq for NestedName
Auto Trait Implementations§
impl RefUnwindSafe for NestedName
impl Send for NestedName
impl Sync for NestedName
impl Unpin for NestedName
impl UnwindSafe for NestedName
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