pub struct Vendor(pub [u8; 12]);
Tuple Fields§
§0: [u8; 12]
Implementations§
source§impl Vendor
impl Vendor
pub const INTEL: Self = _
pub const AMD: Self = _
pub const HYGON: Self = _
pub fn from_ebx_ecx_edx(ebx: u32, ecx: u32, edx: u32) -> Self
pub fn to_ebx_ecx_edx(self) -> (u32, u32, u32)
pub fn is_intel_compatible(&self) -> bool
pub fn is_amd_compatible(&self) -> bool
Trait Implementations§
source§impl<'a> Arbitrary<'a> for Vendor
impl<'a> Arbitrary<'a> for Vendor
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreimpl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)