pub struct NodeInfo(/* private fields */);Expand description
The layout of ECX in NODE_INFO.
Implementations§
Source§impl NodeInfo
impl NodeInfo
Sourcepub const RSVD1_MASK: u32
pub const RSVD1_MASK: u32
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u32
pub const RSVD0_MASK: u32
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u32
pub const DEFAULT: u32
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const NODES_PER_PACKAGE_MASK: u32
pub const NODES_PER_PACKAGE_MASK: u32
Unshifted bitmask of nodes_per_package.
Sourcepub const NODES_PER_PACKAGE_SHIFT: usize = 8
pub const NODES_PER_PACKAGE_SHIFT: usize = 8
Bit shift (i.e., the low bit) of nodes_per_package.
Sourcepub const NODE_ID_MASK: u32
pub const NODE_ID_MASK: u32
Unshifted bitmask of node_id.
Sourcepub const NODE_ID_SHIFT: usize = 0
pub const NODE_ID_SHIFT: usize = 0
Bit shift (i.e., the low bit) of node_id.
Sourcepub const FIELDS: [FieldMetadata<u32>; 2]
pub const FIELDS: [FieldMetadata<u32>; 2]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u32
Sourcepub const fn nodes_per_package(&self) -> u8
pub const fn nodes_per_package(&self) -> u8
The value of NodeInfo[10:8].
Sourcepub const fn set_nodes_per_package(&mut self, value: u8) -> &mut Self
pub const fn set_nodes_per_package(&mut self, value: u8) -> &mut Self
Sets the value of NodeInfo[10:8].
Sourcepub const fn set_node_id(&mut self, value: u8) -> &mut Self
pub const fn set_node_id(&mut self, value: u8) -> &mut Self
Sets the value of NodeInfo[7:0].
Trait Implementations§
impl Copy for NodeInfo
Source§impl Default for NodeInfo
impl Default for NodeInfo
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for NodeInfo
impl StructuralPartialEq for NodeInfo
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnsafeUnpin for NodeInfo
impl UnwindSafe for NodeInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)