Enum cros_libva::GenericValue
source · pub enum GenericValue {
Integer(i32),
Float(f32),
Pointer(*mut c_void),
Func(Option<unsafe extern "C" fn()>),
}Expand description
A wrapper over VAGenericValue giving us safe access to the underlying union members.
Variants§
Integer(i32)
A wrapper over VAGenericValueTypeInteger
Float(f32)
A wrapper over VAGenericValueTypeFloat
Pointer(*mut c_void)
A wrapper over VAGenericValueTypePointer
Func(Option<unsafe extern "C" fn()>)
A wrapper over VAGenericValueTypeFunc
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenericValue
impl RefUnwindSafe for GenericValue
impl !Send for GenericValue
impl !Sync for GenericValue
impl Unpin for GenericValue
impl UnwindSafe for GenericValue
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