pub enum DataType {
Show 21 variants
U8 {
span: Span,
},
U16 {
span: Span,
},
U32 {
span: Span,
},
U64 {
span: Span,
},
S8 {
span: Span,
},
S16 {
span: Span,
},
S32 {
span: Span,
},
S64 {
span: Span,
},
F16 {
span: Span,
},
F16x2 {
span: Span,
},
F32 {
span: Span,
},
F64 {
span: Span,
},
B8 {
span: Span,
},
B16 {
span: Span,
},
B32 {
span: Span,
},
B64 {
span: Span,
},
B128 {
span: Span,
},
Pred {
span: Span,
},
TexRef {
span: Span,
},
SamplerRef {
span: Span,
},
SurfRef {
span: Span,
},
}Variants§
U8
.u8
U16
.u16
U32
.u32
U64
.u64
S8
.s8
S16
.s16
S32
.s32
S64
.s64
F16
.f16
F16x2
.f16x2
F32
.f32
F64
.f64
B8
.b8
B16
.b16
B32
.b32
B64
.b64
B128
.b128
Pred
.pred
TexRef
.texref
SamplerRef
.samplerref
SurfRef
.surfref
Implementations§
Trait Implementations§
Source§impl PtxParser for DataType
impl PtxParser for DataType
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Returns a parser function that can parse an instance of
Self.Source§impl PtxUnparser for DataType
impl PtxUnparser for DataType
Source§impl TreeDisplay for DataType
impl TreeDisplay for DataType
Source§fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result
Display this node in tree format. Read more
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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