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, Type
s exist as references to data owned by the parent TypeInformation
.
Therefore, a Type
may not outlive its parent.
Methods
impl<'t> Type<'t>
[src]
fn type_index(&self) -> TypeIndex
Returns this type's TypeIndex
.
fn len(&self) -> usize
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.
fn raw_kind(&self) -> u16
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
.
fn parse(&self) -> Result<TypeData<'t>>
Parse this Type into a TypeData.
Errors
Error::UnimplementedTypeKind(kind)
if the type record isn't currently understood by this libraryError::UnexpectedEof
if the type record is malformed
Trait Implementations
impl<'t> Copy for Type<'t>
[src]
impl<'t> Clone for Type<'t>
[src]
fn clone(&self) -> Type<'t>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'t> PartialEq for Type<'t>
[src]
fn eq(&self, __arg_0: &Type<'t>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Type<'t>) -> bool
This method tests for !=
.