glib::value

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§

Source§

impl ValueType for NormalizeMode

Source§

impl ValueType for UnicodeBreakType

Source§

impl ValueType for UnicodeScript

Source§

impl ValueType for UnicodeType

Source§

impl ValueType for StrV

Source§

impl ValueType for BindingFlags

Source§

impl ValueType for GString

Source§

impl ValueType for IOCondition

Source§

impl ValueType for ILong

Source§

impl ValueType for ULong

Source§

impl ValueType for BoxedValue

Source§

impl ValueType for Pointer

impl ValueType for Format

impl ValueType for State

impl ValueType for Buffer

impl ValueType for Caps

impl ValueType for Event

impl ValueType for Memory

impl ValueType for Query

impl ValueType for Sample

impl ValueType for Array

impl ValueType for List

impl ValueType for Rank

impl ValueType for Toc

impl<T: StaticType + 'static> ValueType for Iterator<T>

impl ValueType for GLAPI