pub enum FunctionDim {
X {
x: u32,
span: Span,
},
XY {
x: u32,
y: u32,
span: Span,
},
XYZ {
x: u32,
y: u32,
z: u32,
span: Span,
},
}Expand description
Dimension triplet used by several function header directives.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for FunctionDim
impl Clone for FunctionDim
Source§fn clone(&self) -> FunctionDim
fn clone(&self) -> FunctionDim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionDim
impl Debug for FunctionDim
Source§impl PartialEq for FunctionDim
impl PartialEq for FunctionDim
Source§fn eq(&self, other: &FunctionDim) -> bool
fn eq(&self, other: &FunctionDim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PtxUnparser for FunctionDim
impl PtxUnparser for FunctionDim
Source§fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
Append the PTX token sequence representing
self to tokens.Source§fn unparse_tokens_mode(&self, tokens: &mut Vec<PtxToken>, spaced: bool)
fn unparse_tokens_mode(&self, tokens: &mut Vec<PtxToken>, spaced: bool)
Append tokens, optionally inserting spacing tokens for readability.
Source§fn to_tokens(&self) -> Vec<PtxToken>
fn to_tokens(&self) -> Vec<PtxToken>
Convenience helper that returns the serialized PTX token stream.
Source§fn to_tokens_spaced(&self) -> Vec<PtxToken>
fn to_tokens_spaced(&self) -> Vec<PtxToken>
Convenience helper that returns the serialized PTX token stream with
spacing/newlines inserted for readability.
Source§impl Serialize for FunctionDim
impl Serialize for FunctionDim
Source§impl Spanned for FunctionDim
impl Spanned for FunctionDim
impl StructuralPartialEq for FunctionDim
Source§impl TreeDisplay for FunctionDim
impl TreeDisplay for FunctionDim
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
Auto Trait Implementations§
impl Freeze for FunctionDim
impl RefUnwindSafe for FunctionDim
impl Send for FunctionDim
impl Sync for FunctionDim
impl Unpin for FunctionDim
impl UnsafeUnpin for FunctionDim
impl UnwindSafe for FunctionDim
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