#[non_exhaustive]pub enum GpuOptions {
Mapping(Vec<KeyValueEntry>),
List(Vec<Located<String>>),
}Expand description
GPU selector options in their authored mapping or list form.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mapping(Vec<KeyValueEntry>)
Ordered mapping entries with scalar values.
List(Vec<Located<String>>)
Ordered raw string option entries.
Implementations§
Source§impl GpuOptions
impl GpuOptions
Sourcepub fn as_mapping(&self) -> Option<&[KeyValueEntry]>
pub fn as_mapping(&self) -> Option<&[KeyValueEntry]>
Returns mapping entries when the selector used mapping syntax.
Trait Implementations§
Source§impl Clone for GpuOptions
impl Clone for GpuOptions
Source§fn clone(&self) -> GpuOptions
fn clone(&self) -> GpuOptions
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 GpuOptions
impl Debug for GpuOptions
impl Eq for GpuOptions
Source§impl PartialEq for GpuOptions
impl PartialEq for GpuOptions
impl StructuralPartialEq for GpuOptions
Auto Trait Implementations§
impl Freeze for GpuOptions
impl RefUnwindSafe for GpuOptions
impl Send for GpuOptions
impl Sync for GpuOptions
impl Unpin for GpuOptions
impl UnsafeUnpin for GpuOptions
impl UnwindSafe for GpuOptions
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