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.
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.
Error::UnimplementedTypeKind(kind)
if the type record isn't currently understood by this
library
Error::UnexpectedEof
if the type record is malformed
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Formats the value using the given formatter. Read more