pub struct AdapterDescription {
pub name: String,
pub detail: String,
}Expand description
One enumerated adapter: the name a caller matches against, and the full description a caller prints.
Two fields because the two jobs want different strings. name is wgpu’s
bare AdapterInfo::name, which is what a substring is matched against and
what a DXGI Description is expected to equal; detail adds backend,
device type and driver, which help a reader choose and would wreck a match.
Fields§
§name: Stringwgpu’s bare adapter name - the match key.
detail: StringName plus backend, device type and driver, for printing.
Trait Implementations§
Source§impl Clone for AdapterDescription
impl Clone for AdapterDescription
Source§fn clone(&self) -> AdapterDescription
fn clone(&self) -> AdapterDescription
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 AdapterDescription
impl Debug for AdapterDescription
Source§impl PartialEq for AdapterDescription
impl PartialEq for AdapterDescription
Source§fn eq(&self, other: &AdapterDescription) -> bool
fn eq(&self, other: &AdapterDescription) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AdapterDescription
impl StructuralPartialEq for AdapterDescription
Auto Trait Implementations§
impl Freeze for AdapterDescription
impl RefUnwindSafe for AdapterDescription
impl Send for AdapterDescription
impl Sync for AdapterDescription
impl Unpin for AdapterDescription
impl UnsafeUnpin for AdapterDescription
impl UnwindSafe for AdapterDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.