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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ValueType for bool

§

type Type = bool

source§

impl ValueType for char

§

type Type = u32

source§

impl ValueType for f32

§

type Type = f32

source§

impl ValueType for f64

§

type Type = f64

source§

impl ValueType for i8

§

type Type = i8

source§

impl ValueType for i32

§

type Type = i32

source§

impl ValueType for i64

§

type Type = i64

source§

impl ValueType for u8

§

type Type = u8

source§

impl ValueType for u32

§

type Type = u32

source§

impl ValueType for u64

§

type Type = u64

source§

impl ValueType for Box<str>

§

type Type = String

source§

impl ValueType for String

§

type Type = String

source§

impl ValueType for Vec<GString>

source§

impl ValueType for Vec<String>

§

type Type = Vec<String>

source§

impl ValueType for NonNull<Pointee>

source§

impl ValueType for PathBuf

source§

impl ValueType for NonZeroI8

§

type Type = NonZero<i8>

source§

impl ValueType for NonZeroI32

source§

impl ValueType for NonZeroI64

source§

impl ValueType for NonZeroU8

§

type Type = NonZero<u8>

source§

impl ValueType for NonZeroU32

source§

impl ValueType for NonZeroU64

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

Implementors§