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

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

Literal(TypeHandleusizeusize)

A type literal.

External(MangledName)

An external name.

Trait Implementations

impl Clone for ExprPrimary[src]

impl Debug for ExprPrimary[src]

impl Eq for ExprPrimary[src]

impl PartialEq<ExprPrimary> for ExprPrimary[src]

impl StructuralEq for ExprPrimary[src]

impl StructuralPartialEq for ExprPrimary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.