#[repr(C)]
pub struct RUGradientFuncs { pub destroy: extern "C" fn(self_c: *const RUBase), pub get_type: extern "C" fn(self_c: *const RUBase) -> u32, pub set_spread: extern "C" fn(self_c: *const RUBase, spread: u32), pub spread: extern "C" fn(self_c: *const RUBase) -> u32, pub set_color_at: extern "C" fn(self_c: *const RUBase, pos: f32, color: *const RUBase), pub coordinate_mode: extern "C" fn(self_c: *const RUBase) -> u32, pub set_coordinate_mode: extern "C" fn(self_c: *const RUBase, mode: u32), pub interpolation_mode: extern "C" fn(self_c: *const RUBase) -> u32, pub set_interpolation_mode: extern "C" fn(self_c: *const RUBase, mode: u32), }

Fields

destroy: extern "C" fn(self_c: *const RUBase)get_type: extern "C" fn(self_c: *const RUBase) -> u32set_spread: extern "C" fn(self_c: *const RUBase, spread: u32)spread: extern "C" fn(self_c: *const RUBase) -> u32set_color_at: extern "C" fn(self_c: *const RUBase, pos: f32, color: *const RUBase)coordinate_mode: extern "C" fn(self_c: *const RUBase) -> u32set_coordinate_mode: extern "C" fn(self_c: *const RUBase, mode: u32)interpolation_mode: extern "C" fn(self_c: *const RUBase) -> u32set_interpolation_mode: extern "C" fn(self_c: *const RUBase, mode: u32)

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.