TableBox

Struct TableBox 

Source
pub struct TableBox { /* private fields */ }
Expand description

CPU frequency table owned and pinned in memory, created from a TableBuilder.

Methods from Deref<Target = Table>§

Source

pub fn as_raw(&self) -> *mut cpufreq_frequency_table

Returns the raw mutable pointer to the C struct cpufreq_frequency_table.

Source

pub fn freq(&self, index: TableIndex) -> Result<Hertz>

Returns frequency at index in the Table.

Source

pub fn flags(&self, index: TableIndex) -> u32

Returns flags at index in the Table.

Source

pub fn data(&self, index: TableIndex) -> u32

Returns data at index in the Table.

Trait Implementations§

Source§

impl Deref for TableBox

Source§

type Target = Table

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?