pub struct CpuidLeafSet { /* private fields */ }
Expand description
A collection of CPUID results.
Implementations§
Source§impl CpuidLeafSet
impl CpuidLeafSet
Sourcepub fn new(leaves: Vec<CpuidLeaf>) -> Self
pub fn new(leaves: Vec<CpuidLeaf>) -> Self
Returns a new result set.
leaves
may contain multiple results for the same function and index.
In this case, they are merged internally (respecting their mask bits),
with later leaves overriding earlier ones.
Sourcepub fn extend(&mut self, leaves: &[CpuidLeaf])
pub fn extend(&mut self, leaves: &[CpuidLeaf])
Extends this result collection with additional leaves
, which are
merged as in new
.
Trait Implementations§
Source§impl Debug for CpuidLeafSet
impl Debug for CpuidLeafSet
Auto Trait Implementations§
impl Freeze for CpuidLeafSet
impl RefUnwindSafe for CpuidLeafSet
impl Send for CpuidLeafSet
impl Sync for CpuidLeafSet
impl Unpin for CpuidLeafSet
impl UnwindSafe for CpuidLeafSet
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