pub struct TypeRef {
pub name: String,
pub span: Span,
}Expand description
Reference to a (possibly compound) HLSL type — float, float2,
float2x2, int, bool, void, or a struct name. Kept as a raw
identifier plus span so the emitter can map to WGSL on its own table.
Fields§
§name: String§span: SpanImplementations§
Trait Implementations§
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl Freeze for TypeRef
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
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