Enum cpp_demangle::ast::ExprPrimary [] [src]

pub enum ExprPrimary {
    Literal(TypeHandleusizeusize),
    External(MangledName),
}

The <expr-primary> production.

<expr-primary> ::= L <type> <value number> E                        # integer literal
               ::= L <type> <value float> E                         # floating literal
               ::= L <string type> E                                # string literal
               ::= L <nullptr type> E                               # nullptr literal (i.e., "LDnE")
               ::= L <pointer type> 0 E                             # null pointer template argument
               ::= L <type> <real-part float> _ <imag-part float> E # complex floating point literal (C 2000)
               ::= L <mangled-name> E                               # external name

Variants

A type literal.

An external name.

Trait Implementations

impl Clone for ExprPrimary
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ExprPrimary
[src]

Formats the value using the given formatter.

impl PartialEq for ExprPrimary
[src]

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

This method tests for !=.

impl Eq for ExprPrimary
[src]