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 f32

§

type Type = f32

source§

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

§

type Type = <T as ValueType>::Type

source§

impl ValueType for Vec<GString>

source§

impl ValueType for NonNull<Pointee>

source§

impl ValueType for f64

§

type Type = f64

source§

impl ValueType for u32

§

type Type = u32

source§

impl ValueType for i8

§

type Type = i8

source§

impl ValueType for char

§

type Type = u32

source§

impl ValueType for Vec<String>

source§

impl ValueType for i64

§

type Type = i64

source§

impl ValueType for String

§

type Type = String

source§

impl ValueType for bool

§

type Type = bool

source§

impl ValueType for i32

§

type Type = i32

source§

impl ValueType for u64

§

type Type = u64

source§

impl ValueType for u8

§

type Type = u8

Implementors§