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 for NestedName
impl PartialEq 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 StructuralPartialEq for NestedName
Auto Trait Implementations§
impl Freeze for NestedName
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)