[][src]Enum cpp_demangle::ast::SpecialName

pub enum SpecialName {
    VirtualTable(TypeHandle),
    Vtt(TypeHandle),
    Typeinfo(TypeHandle),
    TypeinfoName(TypeHandle),
    VirtualOverrideThunk(CallOffsetBox<Encoding>),
    VirtualOverrideThunkCovariant(CallOffsetCallOffsetBox<Encoding>),
    Guard(Name),
    GuardTemporary(Nameusize),
    ConstructionVtable(TypeHandleusizeTypeHandle),
    TypeinfoFunction(TypeHandle),
    TlsInit(Name),
    TlsWrapper(Name),
}

The <special-name> production.

The <special-name> production is spread in pieces through out the ABI spec, and then there are a bunch of g++ extensions that have become de facto.

5.1.4.1 Virtual Tables and RTTI

<special-name> ::= TV <type>    # virtual table
               ::= TT <type>    # VTT structure (construction vtable index)
               ::= TI <type>    # typeinfo structure
               ::= TS <type>    # typeinfo name (null-terminated byte string)

5.1.4.2 Virtual Override Thunks

<special-name> ::= T <call-offset> <base encoding>
    # base is the nominal target function of thunk

<special-name> ::= Tc <call-offset> <call-offset> <base encoding>
    # base is the nominal target function of thunk
    # first call-offset is 'this' adjustment
    # second call-offset is result adjustment

5.1.4.4 Guard Variables

<special-name> ::= GV <object name> # Guard variable for one-time initialization
    # No <type>

5.1.4.5 Lifetime-Extended Temporaries

<special-name> ::= GR <object name> _             # First temporary
<special-name> ::= GR <object name> <seq-id> _    # Subsequent temporaries

De Facto Standard Extensions

<special-name> ::= TC <type> <number> _ <type>    # construction vtable
               ::= TF <type>                      # typinfo function
               ::= TH <name>                      # TLS initialization function
               ::= TW <name>                      # TLS wrapper function

Variants

VirtualTable(TypeHandle)

A virtual table.

A VTT structure (construction vtable index).

Typeinfo(TypeHandle)

A typeinfo structure.

TypeinfoName(TypeHandle)

A typeinfo name (null-terminated byte string).

VirtualOverrideThunk(CallOffsetBox<Encoding>)

A virtual override thunk.

VirtualOverrideThunkCovariant(CallOffsetCallOffsetBox<Encoding>)

A virtual override thunk with a covariant return type.

Guard(Name)

An initialization guard for some static storage.

GuardTemporary(Nameusize)

A temporary used in the initialization of a static storage and promoted to a static lifetime.

ConstructionVtable(TypeHandleusizeTypeHandle)

A construction vtable structure.

TypeinfoFunction(TypeHandle)

A typeinfo function.

TlsInit(Name)

A TLS initialization function.

TlsWrapper(Name)

A TLS wrapper function.

Trait Implementations

impl Clone for SpecialName[src]

impl Debug for SpecialName[src]

impl Eq for SpecialName[src]

impl PartialEq<SpecialName> for SpecialName[src]

impl StructuralEq for SpecialName[src]

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