#[repr(C)]pub struct TopologyEntity {
pub discriminant: TopologyEntityDiscriminant,
pub variant: TopologyEntityVariant,
}
Fields§
§discriminant: TopologyEntityDiscriminant
§variant: TopologyEntityVariant
Implementations§
Source§impl TopologyEntity
impl TopologyEntity
pub fn is_processor(&self) -> bool
pub fn as_processor(&mut self) -> Option<&mut TopologyProcessor>
pub fn is_cluster(&self) -> bool
pub fn as_cluster(&mut self) -> Option<&mut TopologyCluster>
pub fn is_cache(&self) -> bool
pub fn as_cache(&mut self) -> Option<&mut TopologyCache>
pub fn is_die(&self) -> bool
pub fn as_die(&mut self) -> Option<&mut TopologyDie>
pub fn is_socket(&self) -> bool
pub fn as_socket(&mut self) -> Option<&mut TopologySocket>
pub fn is_numa_region(&self) -> bool
pub fn as_numa_region(&mut self) -> Option<&mut TopologyNumaRegion>
Trait Implementations§
Source§impl Clone for TopologyEntity
impl Clone for TopologyEntity
Source§fn clone(&self) -> TopologyEntity
fn clone(&self) -> TopologyEntity
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TopologyEntity
Auto Trait Implementations§
impl Freeze for TopologyEntity
impl RefUnwindSafe for TopologyEntity
impl Send for TopologyEntity
impl Sync for TopologyEntity
impl Unpin for TopologyEntity
impl UnwindSafe for TopologyEntity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)