[][src]Enum cpp_demangle::ast::TypeHandle

pub enum TypeHandle {
    WellKnown(WellKnownComponent),
    BackReference(usize),
    Builtin(BuiltinType),
    QualifiedBuiltin(QualifiedBuiltin),
}

A reference to a parsed Type production.

Variants

A reference to a "well-known" component.

BackReference(usize)

A back-reference into the substitution table to a component we have already parsed.

Builtin(BuiltinType)

A builtin type. These don't end up in the substitutions table.

QualifiedBuiltin(QualifiedBuiltin)

A CV-qualified builtin type. These don't end up in the table either.

Implementations

impl TypeHandle[src]

pub fn back_reference(&self) -> Option<usize>[src]

If this is a BackReference, get its index.

Trait Implementations

impl Clone for TypeHandle[src]

impl Debug for TypeHandle[src]

impl Eq for TypeHandle[src]

impl PartialEq<TypeHandle> for TypeHandle[src]

impl StructuralEq for TypeHandle[src]

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