pub struct CacheGeometry {
pub l1d_bytes: usize,
pub l2_bytes: usize,
pub l3_bytes: usize,
}Expand description
Host CPU cache geometry used to derive tier defaults.
Fields§
§l1d_bytes: usizeL1 data cache size in bytes.
l2_bytes: usizeL2 cache size in bytes.
l3_bytes: usizeL3 cache size in bytes.
Implementations§
Source§impl CacheGeometry
impl CacheGeometry
Sourcepub fn detect_current_host() -> Self
pub fn detect_current_host() -> Self
Detects CPU cache geometry from the current host when possible.
Trait Implementations§
Source§impl Clone for CacheGeometry
impl Clone for CacheGeometry
Source§fn clone(&self) -> CacheGeometry
fn clone(&self) -> CacheGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheGeometry
impl Debug for CacheGeometry
Source§impl<'de> Deserialize<'de> for CacheGeometry
impl<'de> Deserialize<'de> for CacheGeometry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CacheGeometry
impl Serialize for CacheGeometry
impl Copy for CacheGeometry
Auto Trait Implementations§
impl Freeze for CacheGeometry
impl RefUnwindSafe for CacheGeometry
impl Send for CacheGeometry
impl Sync for CacheGeometry
impl Unpin for CacheGeometry
impl UnsafeUnpin for CacheGeometry
impl UnwindSafe for CacheGeometry
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