#[non_exhaustive]pub struct AdapterSummary {
pub name: String,
pub backend: String,
pub device_type: String,
pub driver: String,
}Expand description
Description of the adapter an offscreen image came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringAdapter name.
backend: StringBackend, for example Vulkan.
device_type: StringDevice type, for example DiscreteGpu or Cpu.
driver: StringDriver name and version.
Implementations§
Source§impl AdapterSummary
impl AdapterSummary
Sourcepub fn new(info: &AdapterInfo) -> Self
pub fn new(info: &AdapterInfo) -> Self
Summary of info.
Trait Implementations§
Source§impl Clone for AdapterSummary
impl Clone for AdapterSummary
Source§impl Debug for AdapterSummary
impl Debug for AdapterSummary
impl Eq for AdapterSummary
Source§impl PartialEq for AdapterSummary
impl PartialEq for AdapterSummary
impl StructuralPartialEq for AdapterSummary
Auto Trait Implementations§
impl Freeze for AdapterSummary
impl RefUnwindSafe for AdapterSummary
impl Send for AdapterSummary
impl Sync for AdapterSummary
impl Unpin for AdapterSummary
impl UnsafeUnpin for AdapterSummary
impl UnwindSafe for AdapterSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.