Struct libspa_sys::spa_cpu_methods
source · #[repr(C)]pub struct spa_cpu_methods {
pub version: u32,
pub get_flags: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>,
pub force_flags: Option<unsafe extern "C" fn(object: *mut c_void, flags: u32) -> c_int>,
pub get_count: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>,
pub get_max_align: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>,
pub get_vm_type: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>,
pub zero_denormals: Option<unsafe extern "C" fn(object: *mut c_void, enable: bool) -> c_int>,
}
Expand description
methods
Fields§
§version: u32
§get_flags: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>
get CPU flags
force_flags: Option<unsafe extern "C" fn(object: *mut c_void, flags: u32) -> c_int>
force CPU flags, use SPA_CPU_FORCE_AUTODETECT to autodetect CPU flags
get_count: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>
get number of CPU cores
get_max_align: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>
get maximum required alignment of data
get_vm_type: Option<unsafe extern "C" fn(object: *mut c_void) -> u32>
§zero_denormals: Option<unsafe extern "C" fn(object: *mut c_void, enable: bool) -> c_int>
Trait Implementations§
source§impl Clone for spa_cpu_methods
impl Clone for spa_cpu_methods
source§fn clone(&self) -> spa_cpu_methods
fn clone(&self) -> spa_cpu_methods
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 moresource§impl Debug for spa_cpu_methods
impl Debug for spa_cpu_methods
source§impl PartialEq for spa_cpu_methods
impl PartialEq for spa_cpu_methods
source§fn eq(&self, other: &spa_cpu_methods) -> bool
fn eq(&self, other: &spa_cpu_methods) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_cpu_methods
impl Eq for spa_cpu_methods
impl StructuralPartialEq for spa_cpu_methods
Auto Trait Implementations§
impl RefUnwindSafe for spa_cpu_methods
impl Send for spa_cpu_methods
impl Sync for spa_cpu_methods
impl Unpin for spa_cpu_methods
impl UnwindSafe for spa_cpu_methods
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