Struct clang::Type [] [src]

pub struct Type<'tu> { /* fields omitted */ }

The type of an AST entity.

Methods

impl<'tu> Type<'tu>
[src]

Returns the kind of this type.

Returns the display name of this type.

Returns the alignment of this type in bytes.

Failures

  • this type is a dependent type
  • this type is an incomplete type

Returns the offset of the field with the supplied name in this record type in bits.

Failures

  • this record type is a dependent type
  • this record record type is an incomplete type
  • this record type does not contain a field with the supplied name

Returns the size of this type in bytes.

Failures

  • this type is a dependent type
  • this type is an incomplete type
  • this type is a variable size type

Returns the argument types for this function or method type, if applicable.

Returns the calling convention specified for this function type, if applicable.

Returns the canonical type for this type.

The canonical type is the underlying type with all "sugar" removed (e.g., typedefs).

Returns the class type for this member pointer type, if applicable.

Returns the AST entity that declared this type, if any.

Returns the element type for this array, complex, or vector type, if applicable.

Returns the pointee type for this pointer type, if applicable.

Returns the ref qualifier for this C++ function or method type, if applicable.

Returns the result type for this function or method type, if applicable.

Returns the size of this constant array or vector type, if applicable.

Returns the template argument types for this template class specialization type, if applicable.

Returns whether this type is qualified with const.

Returns whether this type is an elaborated type, if it can be determined for certain.

Returns whether this type is plain old data (POD).

Returns whether this type is qualified with restrict.

Returns whether this type is a variadic function type.

Returns whether this type is qualified with volatile.

Returns whether this type is an integer type.

Returns whether this type is a signed integer type.

Returns whether this type is an unsigned integer type.

Trait Implementations

impl<'tu> Copy for Type<'tu>
[src]

impl<'tu> Clone for Type<'tu>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'tu> Debug for Type<'tu>
[src]

Formats the value using the given formatter.

impl<'tu> PartialEq for Type<'tu>
[src]

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

This method tests for !=.

impl<'tu> Eq for Type<'tu>
[src]