[][src]Enum cpp_demangle::ast::MangledName

pub enum MangledName {
    Encoding(EncodingVec<CloneSuffix>),
    BlockInvoke(EncodingOption<isize>),
    Type(TypeHandle),
    GlobalCtorDtor(GlobalCtorDtor),
}

The root AST node, and starting production.

<mangled-name> ::= _Z <encoding> [<clone-suffix>]*
               ::= ___Z <encoding> <block_invoke>
               ::= <type>

<block_invoke> ::= _block_invoke
               ::= _block_invoke<decimal-digit>+
               ::= _block_invoke_<decimal-digit>+

Variants

Encoding(EncodingVec<CloneSuffix>)

The encoding of the mangled symbol name.

BlockInvoke(EncodingOption<isize>)

The encoding of the mangled symbol name.

A top-level type. Technically not allowed by the standard, however in practice this can happen, and is tested for by libiberty.

GlobalCtorDtor(GlobalCtorDtor)

A global constructor or destructor. This is another de facto standard extension (I think originally from g++?) that is not actually part of the standard proper.

Trait Implementations

impl Clone for MangledName[src]

impl Debug for MangledName[src]

impl Eq for MangledName[src]

impl PartialEq<MangledName> for MangledName[src]

impl StructuralEq for MangledName[src]

impl StructuralPartialEq for MangledName[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.