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
sourceimpl 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
sourceimpl Clone for NestedName
impl Clone for NestedName
sourcefn clone(&self) -> NestedName
fn clone(&self) -> NestedName
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NestedName
impl Debug for NestedName
sourceimpl PartialEq<NestedName> for NestedName
impl PartialEq<NestedName> for NestedName
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &NestedName) -> bool
fn ne(&self, other: &NestedName) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more