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

Trait Implementations

impl Clone for CtorDtorName
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for CtorDtorName
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for CtorDtorName
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for CtorDtorName
[src]