pub enum ModuleInfoDirectiveKind {
Version {
directive: VersionDirective,
span: Range<usize>,
},
Target {
directive: TargetDirective,
span: Range<usize>,
},
AddressSize {
directive: AddressSizeDirective,
span: Range<usize>,
},
}Expand description
Directives that apply to the PTX module as a whole.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ModuleInfoDirectiveKind
impl Clone for ModuleInfoDirectiveKind
Source§fn clone(&self) -> ModuleInfoDirectiveKind
fn clone(&self) -> ModuleInfoDirectiveKind
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 ModuleInfoDirectiveKind
impl Debug for ModuleInfoDirectiveKind
Source§impl PartialEq for ModuleInfoDirectiveKind
impl PartialEq for ModuleInfoDirectiveKind
Source§impl PtxParser for ModuleInfoDirectiveKind
impl PtxParser for ModuleInfoDirectiveKind
Source§fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
Parse an instance of
Self from the token stream.impl StructuralPartialEq for ModuleInfoDirectiveKind
Auto Trait Implementations§
impl Freeze for ModuleInfoDirectiveKind
impl RefUnwindSafe for ModuleInfoDirectiveKind
impl Send for ModuleInfoDirectiveKind
impl Sync for ModuleInfoDirectiveKind
impl Unpin for ModuleInfoDirectiveKind
impl UnwindSafe for ModuleInfoDirectiveKind
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