pub struct Type<'a> {
pub base_type: BaseType,
pub body: TypeBody<'a>,
pub export_name: Option<&'a [u8]>,
pub attributes: Vec<Attribute<'a>>,
}Expand description
One entry in the type table.
Fields§
§base_type: BaseTypeDecoded base type.
body: TypeBody<'a>Type-specific payload.
export_name: Option<&'a [u8]>Export name if the entry has one (high bit of the leading
byte was set), else None.
attributes: Vec<Attribute<'a>>Build-21+ attributes attached to this type, or empty when
the block was absent or count == 0.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnsafeUnpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more