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

Formats the value using the given formatter. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.