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

source§

impl ValueType for char

source§

impl ValueType for f32

source§

impl ValueType for f64

source§

impl ValueType for i8

source§

impl ValueType for i32

source§

impl ValueType for i64

source§

impl ValueType for u8

source§

impl ValueType for u32

source§

impl ValueType for u64

source§

impl ValueType for Box<str>

source§

impl ValueType for String

source§

impl ValueType for Vec<GString>

source§

impl ValueType for Vec<String>

source§

impl ValueType for NonNull<Pointee>

source§

impl ValueType for PathBuf

source§

impl ValueType for NonZeroI8

source§

impl ValueType for NonZeroI32

source§

impl ValueType for NonZeroI64

source§

impl ValueType for NonZeroU8

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,

source§

type Type = <T as ValueType>::Type

Implementors§