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 for DestructorName
impl PartialEq 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 StructuralPartialEq for DestructorName
Auto Trait Implementations§
impl Freeze for DestructorName
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
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
)