Struct atopology::Core [−][src]
Represents a core in the system.
Note
The order is important here, when Ord is derived on structs, it will produce a lexicographic ordering based on the top-to-bottom declaration order of the struct’s members.
Fields
node_id: Option<NodeId>
NUMA node
package_id: PackageId
Package ID
id: CoreId
Core ID (which is relative within the package).
Implementations
impl Core
[src]
pub fn siblings(&'static self) -> impl Iterator<Item = &'static Core>
[src]
All neighboring cores (on the same core)
pub fn threads(&'static self) -> impl Iterator<Item = &'static Thread>
[src]
All threads of the core.
pub fn package(&'static self) -> &'static Package
[src]
Return the Package
this core belongs to.
pub fn node(&'static self) -> Option<&'static Node>
[src]
Return the NUMA node this core belongs to.
Trait Implementations
impl Debug for Core
[src]
impl Eq for Core
[src]
impl Ord for Core
[src]
fn cmp(&self, other: &Core) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Core> for Core
[src]
impl PartialOrd<Core> for Core
[src]
fn partial_cmp(&self, other: &Core) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Core
[src]
impl StructuralPartialEq for Core
[src]
Auto Trait Implementations
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, 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>,