pub enum Gpus {
All(Located<String>),
Devices {
span: SourceSpan,
devices: Vec<GpuDevice>,
unmodeled_items: Vec<SourceSpan>,
},
}Expand description
Service GPU declarations in scalar all or detailed list form.
Variants§
All(Located<String>)
The portable scalar selector, normally all.
Devices
Ordered long-form selectors.
Fields
§
span: SourceSpanSpan of the complete selector sequence.
§
unmodeled_items: Vec<SourceSpan>Exact spans of malformed selector items retained in the syntax document.
Implementations§
Source§impl Gpus
impl Gpus
pub const fn span(&self) -> SourceSpan
Sourcepub fn unmodeled_items(&self) -> &[SourceSpan]
pub fn unmodeled_items(&self) -> &[SourceSpan]
Returns malformed selector-item spans retained without device allocation interpretation.
Trait Implementations§
impl Eq for Gpus
impl StructuralPartialEq for Gpus
Auto Trait Implementations§
impl Freeze for Gpus
impl RefUnwindSafe for Gpus
impl Send for Gpus
impl Sync for Gpus
impl Unpin for Gpus
impl UnsafeUnpin for Gpus
impl UnwindSafe for Gpus
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