Enum CoreKind Copy item path Source pub enum CoreKind {
Performance,
Efficiency,
LpEfficiency,
Unknown,
}Expand description Classifies a CPU core by its performance/efficiency role.
Modern CPUs are heterogeneous in more than one way: Intel ships Performance,
Efficiency and Low-Power-Efficiency cores on one die (Meteor Lake onward),
AMD mixes full-fat and dense (“c”) cores that differ by frequency and cache
rather than ISA, and ARM big.LITTLE/DynamIQ has always been multi-kind.
A boolean P/E split cannot represent shipping silicon - this enum is N-ary.
A Performance core (Intel P-core, ARM “big”, AMD full-fat, Apple P).
An Efficiency core (Intel E-core, ARM “LITTLE”, AMD dense/“c”, Apple E).
A Low-Power Efficiency core (Intel LP-E cores on the SoC tile, or the
lowest capacity tier on a 3-tier ARM design).
The core kind could not be determined.
NOTE: detection never returns this on a homogeneous machine - the
classification invariant is “homogeneous means all Performance”.
Stable index for per-kind tables (l1d[kind.index()]).
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
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 Converts the given value to a
String.
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.