pub enum ParameterDirective {
Register {
ty: DataType,
name: VariableSymbol,
span: Span,
},
Parameter {
align: Option<u32>,
ptr: bool,
space: Option<ParamStateSpace>,
ty: DataType,
name: VariableSymbol,
array: Vec<Option<u64>>,
span: Span,
},
}Expand description
Parameters, used in function declarations and calls, e.g., .param .b32 p.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ParameterDirective
impl Clone for ParameterDirective
Source§fn clone(&self) -> ParameterDirective
fn clone(&self) -> ParameterDirective
Returns a duplicate of the value. Read more
1.0.0 · 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 ParameterDirective
impl Debug for ParameterDirective
Source§impl PartialEq for ParameterDirective
impl PartialEq for ParameterDirective
Source§impl PtxParser for ParameterDirective
impl PtxParser for ParameterDirective
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 Spanned for ParameterDirective
impl Spanned for ParameterDirective
Source§impl TreeDisplay for ParameterDirective
impl TreeDisplay for ParameterDirective
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 ParameterDirective
impl StructuralPartialEq for ParameterDirective
Auto Trait Implementations§
impl Freeze for ParameterDirective
impl RefUnwindSafe for ParameterDirective
impl Send for ParameterDirective
impl Sync for ParameterDirective
impl Unpin for ParameterDirective
impl UnwindSafe for ParameterDirective
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