#[repr(C)]pub struct _GParamSpecVariant {
pub parent_instance: GParamSpec,
pub type_: *mut GVariantType,
pub default_value: *mut GVariant,
pub padding: [gpointer; 4],
}
Expand description
GParamSpecVariant: @parent_instance: private #GParamSpec portion @type: a #GVariantType, or %NULL @default_value: a #GVariant, or %NULL
A #GParamSpec derived structure that contains the meta data for #GVariant properties.
When comparing values with g_param_values_cmp(), scalar values with the same type will be compared with g_variant_compare(). Other non-%NULL variants will be checked for equality with g_variant_equal(), and their sort order is otherwise undefined. %NULL is ordered before non-%NULL variants. Two %NULL values compare equal.
Since: 2.26
Fields§
§parent_instance: GParamSpec
§type_: *mut GVariantType
§default_value: *mut GVariant
§padding: [gpointer; 4]
Trait Implementations§
Source§impl Clone for _GParamSpecVariant
impl Clone for _GParamSpecVariant
Source§fn clone(&self) -> _GParamSpecVariant
fn clone(&self) -> _GParamSpecVariant
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 _GParamSpecVariant
impl Debug for _GParamSpecVariant
Source§impl PartialEq for _GParamSpecVariant
impl PartialEq for _GParamSpecVariant
impl Copy for _GParamSpecVariant
impl Eq for _GParamSpecVariant
impl StructuralPartialEq for _GParamSpecVariant
Auto Trait Implementations§
impl Freeze for _GParamSpecVariant
impl RefUnwindSafe for _GParamSpecVariant
impl !Send for _GParamSpecVariant
impl !Sync for _GParamSpecVariant
impl Unpin for _GParamSpecVariant
impl UnwindSafe for _GParamSpecVariant
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