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
sourceimpl Clone for DestructorName
impl Clone for DestructorName
sourcefn clone(&self) -> DestructorName
fn clone(&self) -> DestructorName
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 DestructorName
impl Debug for DestructorName
sourceimpl PartialEq<DestructorName> for DestructorName
impl PartialEq<DestructorName> for DestructorName
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &DestructorName) -> bool
fn ne(&self, other: &DestructorName) -> bool
This method tests for !=
.
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
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