Struct x86defs::cpuid::CacheParametersEax
source · pub struct CacheParametersEax(/* private fields */);
Implementations§
source§impl CacheParametersEax
impl CacheParametersEax
sourcepub const fn cache_type(&self) -> u32
pub const fn cache_type(&self) -> u32
Bits: 0..5
sourcepub const fn with_cache_type(self, value: u32) -> Self
pub const fn with_cache_type(self, value: u32) -> Self
Bits: 0..5
sourcepub fn set_cache_type(&mut self, value: u32)
pub fn set_cache_type(&mut self, value: u32)
Bits: 0..5
sourcepub const fn cache_level(&self) -> u32
pub const fn cache_level(&self) -> u32
Bits: 5..8
sourcepub const fn with_cache_level(self, value: u32) -> Self
pub const fn with_cache_level(self, value: u32) -> Self
Bits: 5..8
sourcepub fn set_cache_level(&mut self, value: u32)
pub fn set_cache_level(&mut self, value: u32)
Bits: 5..8
sourcepub const fn self_initializing(&self) -> u32
pub const fn self_initializing(&self) -> u32
Bits: 8..9
sourcepub const fn with_self_initializing(self, value: u32) -> Self
pub const fn with_self_initializing(self, value: u32) -> Self
Bits: 8..9
sourcepub fn set_self_initializing(&mut self, value: u32)
pub fn set_self_initializing(&mut self, value: u32)
Bits: 8..9
sourcepub const fn fully_associative(&self) -> u32
pub const fn fully_associative(&self) -> u32
Bits: 9..10
sourcepub const fn with_fully_associative(self, value: u32) -> Self
pub const fn with_fully_associative(self, value: u32) -> Self
Bits: 9..10
sourcepub fn set_fully_associative(&mut self, value: u32)
pub fn set_fully_associative(&mut self, value: u32)
Bits: 9..10
sourcepub const fn with_reserved(self, value: u32) -> Self
pub const fn with_reserved(self, value: u32) -> Self
Bits: 10..14
sourcepub fn set_reserved(&mut self, value: u32)
pub fn set_reserved(&mut self, value: u32)
Bits: 10..14
sourcepub const fn threads_sharing_cache_minus_one(&self) -> u32
pub const fn threads_sharing_cache_minus_one(&self) -> u32
Bits: 14..26
sourcepub const fn with_threads_sharing_cache_minus_one(self, value: u32) -> Self
pub const fn with_threads_sharing_cache_minus_one(self, value: u32) -> Self
Bits: 14..26
sourcepub fn set_threads_sharing_cache_minus_one(&mut self, value: u32)
pub fn set_threads_sharing_cache_minus_one(&mut self, value: u32)
Bits: 14..26
sourcepub const fn cores_per_socket_minus_one(&self) -> u32
pub const fn cores_per_socket_minus_one(&self) -> u32
Bits: 26..32
sourcepub const fn with_cores_per_socket_minus_one(self, value: u32) -> Self
pub const fn with_cores_per_socket_minus_one(self, value: u32) -> Self
Bits: 26..32
sourcepub fn set_cores_per_socket_minus_one(&mut self, value: u32)
pub fn set_cores_per_socket_minus_one(&mut self, value: u32)
Bits: 26..32
Trait Implementations§
source§impl Clone for CacheParametersEax
impl Clone for CacheParametersEax
source§fn clone(&self) -> CacheParametersEax
fn clone(&self) -> CacheParametersEax
Returns a copy of the value. Read more
1.0.0 · 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 CacheParametersEax
impl Debug for CacheParametersEax
source§impl Default for CacheParametersEax
impl Default for CacheParametersEax
source§impl From<CacheParametersEax> for u32
impl From<CacheParametersEax> for u32
source§fn from(v: CacheParametersEax) -> u32
fn from(v: CacheParametersEax) -> u32
Converts to this type from the input type.
source§impl From<u32> for CacheParametersEax
impl From<u32> for CacheParametersEax
impl Copy for CacheParametersEax
Auto Trait Implementations§
impl Freeze for CacheParametersEax
impl RefUnwindSafe for CacheParametersEax
impl Send for CacheParametersEax
impl Sync for CacheParametersEax
impl Unpin for CacheParametersEax
impl UnwindSafe for CacheParametersEax
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
)