#[repr(C)]
pub struct cpuinfo_cache { pub size: u32, pub associativity: u32, pub sets: u32, pub partitions: u32, pub line_size: u32, pub flags: u32, pub processor_start: u32, pub processor_count: u32, }

Fields

size: u32

Cache size in bytes

associativity: u32

Number of ways of associativity

sets: u32

Number of sets

partitions: u32

Number of partitions

line_size: u32

Line size in bytes

flags: u32

Binary characteristics of the cache (unified cache, inclusive cache, cache with complex indexing).

@see CPUINFO_CACHE_UNIFIED, CPUINFO_CACHE_INCLUSIVE, CPUINFO_CACHE_COMPLEX_INDEXING

processor_start: u32

Index of the first logical processor that shares this cache

processor_count: u32

Number of logical processors that share this cache

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.