pub struct RegisterDirective {
pub ty: DataType,
pub registers: Vec<RegisterTarget>,
pub span: Span,
}Expand description
Directive that declares a register variable inside a function body.
Syntax:
.reg .ty name
Fields§
§ty: DataType§registers: Vec<RegisterTarget>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for RegisterDirective
impl Clone for RegisterDirective
Source§fn clone(&self) -> RegisterDirective
fn clone(&self) -> RegisterDirective
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 RegisterDirective
impl Debug for RegisterDirective
Source§impl PartialEq for RegisterDirective
impl PartialEq for RegisterDirective
Source§fn eq(&self, other: &RegisterDirective) -> bool
fn eq(&self, other: &RegisterDirective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PtxUnparser for RegisterDirective
impl PtxUnparser for RegisterDirective
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 RegisterDirective
impl Serialize for RegisterDirective
Source§impl Spanned for RegisterDirective
impl Spanned for RegisterDirective
impl StructuralPartialEq for RegisterDirective
Source§impl TreeDisplay for RegisterDirective
impl TreeDisplay for RegisterDirective
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 RegisterDirective
impl RefUnwindSafe for RegisterDirective
impl Send for RegisterDirective
impl Sync for RegisterDirective
impl Unpin for RegisterDirective
impl UnsafeUnpin for RegisterDirective
impl UnwindSafe for RegisterDirective
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