#[repr(C)]
pub struct RUSizePolicyFuncs { pub destroy: extern "C" fn(self_c: *const RUBase), pub horizontal_policy: extern "C" fn(self_c: *const RUBase) -> u32, pub vertical_policy: extern "C" fn(self_c: *const RUBase) -> u32, pub set_horizontal_policy: extern "C" fn(self_c: *const RUBase, d: u32), pub set_vertical_policy: extern "C" fn(self_c: *const RUBase, d: u32), pub expanding_directions: extern "C" fn(self_c: *const RUBase) -> u32, pub set_height_for_width: extern "C" fn(self_c: *const RUBase, b: bool), pub has_height_for_width: extern "C" fn(self_c: *const RUBase) -> bool, pub set_width_for_height: extern "C" fn(self_c: *const RUBase, b: bool), pub has_width_for_height: extern "C" fn(self_c: *const RUBase) -> bool, pub retain_size_when_hidden: extern "C" fn(self_c: *const RUBase) -> bool, pub set_retain_size_when_hidden: extern "C" fn(self_c: *const RUBase, retain_size: bool), }

Fields

destroy: extern "C" fn(self_c: *const RUBase)horizontal_policy: extern "C" fn(self_c: *const RUBase) -> u32vertical_policy: extern "C" fn(self_c: *const RUBase) -> u32set_horizontal_policy: extern "C" fn(self_c: *const RUBase, d: u32)set_vertical_policy: extern "C" fn(self_c: *const RUBase, d: u32)expanding_directions: extern "C" fn(self_c: *const RUBase) -> u32set_height_for_width: extern "C" fn(self_c: *const RUBase, b: bool)has_height_for_width: extern "C" fn(self_c: *const RUBase) -> boolset_width_for_height: extern "C" fn(self_c: *const RUBase, b: bool)has_width_for_height: extern "C" fn(self_c: *const RUBase) -> boolretain_size_when_hidden: extern "C" fn(self_c: *const RUBase) -> boolset_retain_size_when_hidden: extern "C" fn(self_c: *const RUBase, retain_size: bool)

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.