Struct hwlocality_sys::hwloc_cache_attr_s
source · #[repr(C)]pub struct hwloc_cache_attr_s {
pub size: u64,
pub depth: c_uint,
pub linesize: c_uint,
pub associativity: c_int,
pub ty: hwloc_obj_cache_type_t,
}Expand description
Cache-specific attributes
Fields§
§size: u64Size of the cache in bytes
depth: c_uintDepth of the cache (e.g. L1, L2, …)
linesize: c_uintCache line size in bytes
associativity: c_intWays of associativity, -1 if fully associative, 0 if unknown
ty: hwloc_obj_cache_type_tCache type
Trait Implementations§
source§impl Clone for hwloc_cache_attr_s
impl Clone for hwloc_cache_attr_s
source§fn clone(&self) -> hwloc_cache_attr_s
fn clone(&self) -> hwloc_cache_attr_s
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 hwloc_cache_attr_s
impl Debug for hwloc_cache_attr_s
source§impl Default for hwloc_cache_attr_s
impl Default for hwloc_cache_attr_s
source§fn default() -> hwloc_cache_attr_s
fn default() -> hwloc_cache_attr_s
Returns the “default value” for a type. Read more
source§impl Hash for hwloc_cache_attr_s
impl Hash for hwloc_cache_attr_s
source§impl PartialEq for hwloc_cache_attr_s
impl PartialEq for hwloc_cache_attr_s
source§fn eq(&self, other: &hwloc_cache_attr_s) -> bool
fn eq(&self, other: &hwloc_cache_attr_s) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for hwloc_cache_attr_s
impl Eq for hwloc_cache_attr_s
impl StructuralEq for hwloc_cache_attr_s
impl StructuralPartialEq for hwloc_cache_attr_s
Auto Trait Implementations§
impl RefUnwindSafe for hwloc_cache_attr_s
impl Send for hwloc_cache_attr_s
impl Sync for hwloc_cache_attr_s
impl Unpin for hwloc_cache_attr_s
impl UnwindSafe for hwloc_cache_attr_s
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