Enum cpp_demangle::ast::CtorDtorName
[−]
[src]
pub enum CtorDtorName { CompleteConstructor, BaseConstructor, CompleteAllocatingConstructor, MaybeInChargeConstructor, DeletingDestructor, CompleteDestructor, BaseDestructor, MaybeInChargeDestructor, }
The <ctor-dtor-name>
production.
<ctor-dtor-name> ::= C1 # complete object constructor
::= C2 # base object constructor
::= C3 # complete object allocating constructor
::= D0 # deleting destructor
::= D1 # complete object destructor
::= D2 # base object destructor
GCC also emits a C4 constructor under some conditions when building an optimized binary. GCC's source says: /* This is the old-style "[unified]" constructor. In some cases, we may emit this function and call it from the clones in order to share code and save space. */ Based on the GCC source we'll call this the "maybe in-charge constructor". Similarly, there is a D4 destructor, the "maybe in-charge destructor".
Variants
CompleteConstructor
BaseConstructor
CompleteAllocatingConstructor
MaybeInChargeConstructor
DeletingDestructor
CompleteDestructor
BaseDestructor
MaybeInChargeDestructor
Trait Implementations
impl Clone for CtorDtorName
[src]
fn clone(&self) -> CtorDtorName
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CtorDtorName
[src]
impl PartialEq for CtorDtorName
[src]
fn eq(&self, __arg_0: &CtorDtorName) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.