#[non_exhaustive]pub enum TypeArg {
Type(TypeRef),
Expr(Expr),
Modified(Vec<Modifier>, TypeRef),
}Expand description
One argument of a template type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Type(TypeRef)
A type argument.
Expr(Expr)
A constant argument.
Modified(Vec<Modifier>, TypeRef)
A type with unorm or snorm, for example in RWTexture2D<unorm float4>.
Trait Implementations§
impl StructuralPartialEq for TypeArg
Auto Trait Implementations§
impl Forget for TypeArg
impl Freeze for TypeArgwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeArg>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const TypeRef is !null: Freeze,
PhantomData<TypeRef>: Freeze,
PhantomData<Modifier>: Freeze,
impl Move for TypeArg
impl RefUnwindSafe for TypeArg
impl Send for TypeArg
impl Sync for TypeArg
impl Unpin for TypeArg
impl UnsafeUnpin for TypeArgwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeArg>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const TypeRef is !null: UnsafeUnpin,
PhantomData<TypeRef>: UnsafeUnpin,
PhantomData<Modifier>: UnsafeUnpin,
impl UnwindSafe for TypeArg
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