[−][src]Struct mac_sys_info::structs::cache_info::CacheInfo
Implementations
impl CacheInfo
[src]
pub fn new(sysinfo: &BTreeMap<String, String>) -> Result<Self, MacSysInfoError>
[src]
pub fn l1i_cache_size(&self) -> usize
[src]
Size of L1 instruction cache in byte.
pub fn l1d_cache_size(&self) -> usize
[src]
Size of L1 data cache in byte.
pub fn l2_cache_size(&self) -> usize
[src]
Size of L2 in byte.
pub fn l3_cache_size(&self) -> usize
[src]
Size of L2 in byte.
pub fn l1i_cache_size_kb(&self) -> f64
[src]
Size of L1 instruction cache in kibibyte.
pub fn l1d_cache_size_kb(&self) -> f64
[src]
Size of L1 data cache in kibibyte.
pub fn l2_cache_size_kb(&self) -> f64
[src]
Size of L2 cache in kibibyte.
pub fn l3_cache_size_kb(&self) -> f64
[src]
Size of L3 cache in kibibyte.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnwindSafe for CacheInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,