Skip to main content

TargetString

Enum TargetString 

Source
pub enum TargetString {
Show 47 variants Sm120a { span: Span, }, Sm120f { span: Span, }, Sm120 { span: Span, }, Sm121a { span: Span, }, Sm121f { span: Span, }, Sm121 { span: Span, }, Sm110a { span: Span, }, Sm110f { span: Span, }, Sm110 { span: Span, }, Sm100a { span: Span, }, Sm100f { span: Span, }, Sm100 { span: Span, }, Sm101a { span: Span, }, Sm101f { span: Span, }, Sm101 { span: Span, }, Sm103a { span: Span, }, Sm103f { span: Span, }, Sm103 { span: Span, }, Sm90a { span: Span, }, Sm90 { span: Span, }, Sm80 { span: Span, }, Sm86 { span: Span, }, Sm87 { span: Span, }, Sm88 { span: Span, }, Sm89 { span: Span, }, Sm70 { span: Span, }, Sm72 { span: Span, }, Sm75 { span: Span, }, Sm60 { span: Span, }, Sm61 { span: Span, }, Sm62 { span: Span, }, Sm50 { span: Span, }, Sm52 { span: Span, }, Sm53 { span: Span, }, Sm30 { span: Span, }, Sm32 { span: Span, }, Sm35 { span: Span, }, Sm37 { span: Span, }, Sm20 { span: Span, }, Sm10 { span: Span, }, Sm11 { span: Span, }, Sm12 { span: Span, }, Sm13 { span: Span, }, TexmodeUnified { span: Span, }, TexmodeIndependent { span: Span, }, Debug { span: Span, }, MapF64ToF32 { span: Span, },
}
Expand description

Target specifiers used in the .target directive.

Variants§

§

Sm120a

Fields

§span: Span
§

Sm120f

Fields

§span: Span
§

Sm120

Fields

§span: Span
§

Sm121a

Fields

§span: Span
§

Sm121f

Fields

§span: Span
§

Sm121

Fields

§span: Span
§

Sm110a

Fields

§span: Span
§

Sm110f

Fields

§span: Span
§

Sm110

Fields

§span: Span
§

Sm100a

Fields

§span: Span
§

Sm100f

Fields

§span: Span
§

Sm100

Fields

§span: Span
§

Sm101a

Fields

§span: Span
§

Sm101f

Fields

§span: Span
§

Sm101

Fields

§span: Span
§

Sm103a

Fields

§span: Span
§

Sm103f

Fields

§span: Span
§

Sm103

Fields

§span: Span
§

Sm90a

Fields

§span: Span
§

Sm90

Fields

§span: Span
§

Sm80

Fields

§span: Span
§

Sm86

Fields

§span: Span
§

Sm87

Fields

§span: Span
§

Sm88

Fields

§span: Span
§

Sm89

Fields

§span: Span
§

Sm70

Fields

§span: Span
§

Sm72

Fields

§span: Span
§

Sm75

Fields

§span: Span
§

Sm60

Fields

§span: Span
§

Sm61

Fields

§span: Span
§

Sm62

Fields

§span: Span
§

Sm50

Fields

§span: Span
§

Sm52

Fields

§span: Span
§

Sm53

Fields

§span: Span
§

Sm30

Fields

§span: Span
§

Sm32

Fields

§span: Span
§

Sm35

Fields

§span: Span
§

Sm37

Fields

§span: Span
§

Sm20

Fields

§span: Span
§

Sm10

Fields

§span: Span
§

Sm11

Fields

§span: Span
§

Sm12

Fields

§span: Span
§

Sm13

Fields

§span: Span
§

TexmodeUnified

Fields

§span: Span
§

TexmodeIndependent

Fields

§span: Span
§

Debug

Fields

§span: Span
§

MapF64ToF32

Fields

§span: Span

Implementations§

Source§

impl TargetString

Source

pub fn span(&self) -> Span

Source

pub fn with_span(self, span: Span) -> Self

Trait Implementations§

Source§

impl Clone for TargetString

Source§

fn clone(&self) -> TargetString

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TargetString

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TargetString

Source§

fn eq(&self, other: &TargetString) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PtxParser for TargetString

Source§

fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>

Returns a parser function that can parse an instance of Self.
Source§

impl Serialize for TargetString

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Spanned for TargetString

Source§

fn span(&self) -> Span

Returns the stored span for this node.
Source§

fn set_span(&mut self, span: Span)

Mutates the stored span in-place.
Source§

fn with_span(self, span: Span) -> Self

Convenience helper that sets the span and returns self.
Source§

impl StructuralPartialEq for TargetString

Source§

impl TreeDisplay for TargetString

Source§

fn tree_display(&self, f: &mut TreeFormatter, source: &str) -> Result

Display this node in tree format. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.