pub struct NvrtcOptions {
pub arch: Option<String>,
pub std: Option<String>,
pub extra: Vec<String>,
}Expand description
Narrow, typed NVRTC compile options.
Only a conservative subset of NVRTC flags is exposed. The arch option is
forwarded as --gpu-architecture=... (e.g. "compute_80").
Fields§
§arch: Option<String>Pass --gpu-architecture=<arch> when set (e.g. Some("compute_80")).
std: Option<String>Pass --std=<std> when set (e.g. Some("c++17")).
extra: Vec<String>Extra raw flags forwarded verbatim.
Trait Implementations§
Source§impl Clone for NvrtcOptions
impl Clone for NvrtcOptions
Source§fn clone(&self) -> NvrtcOptions
fn clone(&self) -> NvrtcOptions
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 NvrtcOptions
impl Debug for NvrtcOptions
Source§impl Default for NvrtcOptions
impl Default for NvrtcOptions
Source§fn default() -> NvrtcOptions
fn default() -> NvrtcOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for NvrtcOptions
impl PartialEq for NvrtcOptions
Source§fn eq(&self, other: &NvrtcOptions) -> bool
fn eq(&self, other: &NvrtcOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NvrtcOptions
Auto Trait Implementations§
impl Freeze for NvrtcOptions
impl RefUnwindSafe for NvrtcOptions
impl Send for NvrtcOptions
impl Sync for NvrtcOptions
impl Unpin for NvrtcOptions
impl UnsafeUnpin for NvrtcOptions
impl UnwindSafe for NvrtcOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more