pub struct Type<'a> {
pub id: Handle<TypeId>,
pub name: Option<CompilerStr<'a>>,
pub inner: TypeInner<'a>,
pub size_hint: TypeSizeHint,
}Expand description
A type definition.
Fields§
§id: Handle<TypeId>The SPIR-V ID of the type.
name: Option<CompilerStr<'a>>The name of the type, if any.
inner: TypeInner<'a>Inner details about the type.
size_hint: TypeSizeHintA size hint for the type, representing the minimum size the type could be.
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> 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