Struct clang::Type [] [src]

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

The type of an AST entity.

Methods

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

[src]

Returns the kind of this type.

[src]

Returns the display name of this type.

[src]

Returns the alignment of this type in bytes.

Failures

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns the canonical type for this type.

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

Returns whether this type is qualified with const.

[src]

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

[src]

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

[src]

Returns whether this type is qualified with restrict.

[src]

Returns whether this type is a variadic function type.

[src]

Returns whether this type is qualified with volatile.

[src]

Returns whether this type is an integer type.

[src]

Returns whether this type is a signed integer type.

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more

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

[src]

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

1.0.0
[src]

This method tests for !=.

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

Auto Trait Implementations

impl<'tu> !Send for Type<'tu>

impl<'tu> !Sync for Type<'tu>