Struct glib::value::Value [−][src]
#[repr(transparent)]pub struct Value(_);
Expand description
A generic value capable of carrying various types.
Once created the type of the value can’t be changed.
Some types (e.g. String and objects) support None values while others
(e.g. numeric types) don’t.
Value does not implement the Send trait, but SendValue can be
used instead.
See the module documentation for more details.
Implementations
Creates a new Value that is initialized for a given ValueType.
Tries to get a value of type T.
Returns Ok if the type is correct.
Returns true if the type of the value corresponds to T
or is a sub-type of T.
Returns whether Values of type src can be transformed to type dst.
Tries to transform the value into a value of the target type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Valueimpl UnwindSafe for ValueBlanket Implementations
Mutably borrows from an owned value. Read more