Trait glib::value::ValueType

source ·
pub trait ValueType: ToValue + for<'a> FromValue<'a> + 'static {
    type Type: StaticType;
}
Expand description

A type that can be stored in Values.

Required Associated Types§

source

type Type: StaticType

Type to get the Type from.

This exists only for handling optional types.

Implementations on Foreign Types§

source§

impl ValueType for u64

§

type Type = u64

source§

impl ValueType for u8

§

type Type = u8

source§

impl ValueType for bool

§

type Type = bool

source§

impl ValueType for String

§

type Type = String

source§

impl ValueType for Vec<String>

source§

impl ValueType for i8

§

type Type = i8

source§

impl ValueType for i32

§

type Type = i32

source§

impl ValueType for f64

§

type Type = f64

source§

impl ValueType for Vec<GString>

source§

impl ValueType for u32

§

type Type = u32

source§

impl<T, C> ValueType for Option<T>where T: for<'a> FromValue<'a, Checker = C> + ValueTypeOptional + StaticType + 'static, C: ValueTypeChecker<Error = ValueTypeMismatchOrNoneError>,

§

type Type = <T as ValueType>::Type

source§

impl ValueType for i64

§

type Type = i64

source§

impl ValueType for f32

§

type Type = f32

source§

impl ValueType for NonNull<Pointee>

source§

impl ValueType for char

§

type Type = u32

Implementors§

source§

impl ValueType for BindingFlags

source§

impl ValueType for GString

§

type Type = String

source§

impl ValueType for IOCondition

source§

impl ValueType for ILong

§

type Type = ILong

source§

impl ValueType for ULong

§

type Type = ULong

source§

impl ValueType for BoxedValue

source§

impl ValueType for Pointer

impl ValueType for Format

impl ValueType for Extend

impl ValueType for Device

impl ValueType for Filter

impl ValueType for Region

impl ValueType for Matrix

impl ValueType for GLAPI

impl ValueType for Key

impl ValueType for Corner

impl ValueType for Align

impl ValueType for Unit

impl ValueType for Easing

impl ValueType for Script

impl ValueType for Style

impl ValueType for Weight