pub enum Vendor {
Show 17 variants
AMD = 4_098,
ImgTec = 4_112,
Apple = 4_203,
Nvidia = 4_318,
ARM = 5_045,
Microsoft = 5_140,
Google = 6_880,
Qualcomm = 20_803,
Intel = 32_902,
Unknown = 65_535,
VIV = 65_537,
VSI = 65_538,
Kazan = 65_539,
Codeplay = 65_540,
Mesa = 65_541,
Pocl = 65_542,
MobileEye = 65_543,
}Expand description
Represents a GPU vendor.
Variants§
AMD = 4_098
ImgTec = 4_112
Apple = 4_203
Nvidia = 4_318
ARM = 5_045
Microsoft = 5_140
Google = 6_880
Qualcomm = 20_803
Intel = 32_902
Unknown = 65_535
VIV = 65_537
VSI = 65_538
Kazan = 65_539
Codeplay = 65_540
Mesa = 65_541
Pocl = 65_542
MobileEye = 65_543
Implementations§
Source§impl Vendor
impl Vendor
Sourcepub fn get_ascii_art(&self) -> Vec<String>
pub fn get_ascii_art(&self) -> Vec<String>
Returns the vendor-specific ASCII art with color styling applied.
Sourcepub const fn get_style(&self) -> [&str; 5]
pub const fn get_style(&self) -> [&str; 5]
Returns an array of style strings associated with the vendor.
Sourcepub fn from_vendor_id(id: u32) -> Option<Self>
pub fn from_vendor_id(id: u32) -> Option<Self>
Constructs a Vendor from a vendor ID, if recognized.
pub const fn get_alternative_style(&self) -> [&str; 5]
Trait Implementations§
impl Copy for Vendor
impl Eq for Vendor
impl StructuralPartialEq for Vendor
Auto Trait Implementations§
impl Freeze for Vendor
impl RefUnwindSafe for Vendor
impl Send for Vendor
impl Sync for Vendor
impl Unpin for Vendor
impl UnwindSafe for Vendor
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