Skip to main content

HostCpuid

Trait HostCpuid 

Source
pub trait HostCpuid {
    // Required method
    fn cpuid(&self, leaf: u32, subleaf: u32) -> [u32; 4];
}
Expand description

A host CPUID reader, so tests can supply a host.

Required Methods§

Source

fn cpuid(&self, leaf: u32, subleaf: u32) -> [u32; 4]

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl HostCpuid for NativeCpuid

Available on x86-64 only.