Enum cpp_demangle::ast::DestructorName
source · pub enum DestructorName {
Unresolved(UnresolvedTypeHandle),
Name(SimpleId),
}
Expand description
The <destructor-name>
production.
<destructor-name> ::= <unresolved-type> # e.g., ~T or ~decltype(f())
::= <simple-id> # e.g., ~A<2*N>
Variants§
Unresolved(UnresolvedTypeHandle)
A destructor for an unresolved type.
Name(SimpleId)
A destructor for a resolved type name.
Trait Implementations§
source§impl Clone for DestructorName
impl Clone for DestructorName
source§fn clone(&self) -> DestructorName
fn clone(&self) -> DestructorName
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 DestructorName
impl Debug for DestructorName
source§impl PartialEq<DestructorName> for DestructorName
impl PartialEq<DestructorName> for DestructorName
source§fn eq(&self, other: &DestructorName) -> bool
fn eq(&self, other: &DestructorName) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DestructorName
impl StructuralEq for DestructorName
impl StructuralPartialEq for DestructorName
Auto Trait Implementations§
impl RefUnwindSafe for DestructorName
impl Send for DestructorName
impl Sync for DestructorName
impl Unpin for DestructorName
impl UnwindSafe for DestructorName
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