Struct pdb::Type [] [src]

pub struct Type<'t>(_, _);

Represents a type from the type table. A Type has been minimally processed and may not be correctly formed or even understood by this library.

To avoid copying, Types exist as references to data owned by the parent TypeInformation. Therefore, a Type may not outlive its parent.

Methods

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

Returns this type's TypeIndex.

Returns the length of this type's data in terms of bytes in the on-disk format.

Types are prefixed by length, which is not included in this count.

Returns the kind of type identified by this Type.

As a special case, if this Type is actually a primitive type, raw_kind() will return 0xffff.

Parse this Type into a TypeData.

Errors

  • Error::UnimplementedTypeKind(kind) if the type record isn't currently understood by this library
  • Error::UnexpectedEof if the type record is malformed

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

This method tests for !=.

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

Formats the value using the given formatter.