pub struct VendorString(/* private fields */);Expand description
A vendor string derived from CPUID.
Implementations§
Source§impl VendorString
impl VendorString
Sourcepub fn from_cpuid(cpuid: impl Cpuid) -> Self
pub fn from_cpuid(cpuid: impl Cpuid) -> Self
Returns the CPUID-based vendor string.
Sourcepub fn vendor(&self) -> Vendor
pub fn vendor(&self) -> Vendor
Returns the vendor identified by this string.
Returns Vendor::Unknown when the vendor string does not correspond
to a known vendor.
pub fn as_str(&self) -> Result<&str, Utf8Error>
Trait Implementations§
Source§impl Clone for VendorString
impl Clone for VendorString
Source§fn clone(&self) -> VendorString
fn clone(&self) -> VendorString
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VendorString
Source§impl Debug for VendorString
impl Debug for VendorString
impl Eq for VendorString
Source§impl PartialEq for VendorString
impl PartialEq for VendorString
impl StructuralPartialEq for VendorString
Auto Trait Implementations§
impl Freeze for VendorString
impl RefUnwindSafe for VendorString
impl Send for VendorString
impl Sync for VendorString
impl Unpin for VendorString
impl UnsafeUnpin for VendorString
impl UnwindSafe for VendorString
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)