Struct grust::value::Value
[−]
[src]
pub struct Value(_);
Methods
impl Value
[src]
fn new(g_type: GType) -> Value
fn value_type(&self) -> GType
fn reset(&mut self)
fn get_boolean(&self) -> bool
fn set_boolean(&mut self, val: bool)
fn get_char(&self) -> gchar
fn set_char(&mut self, val: gchar)
fn get_schar(&self) -> i8
fn set_schar(&mut self, val: i8)
fn get_uchar(&self) -> guchar
fn set_uchar(&mut self, val: guchar)
fn get_int(&self) -> gint
fn set_int(&mut self, val: gint)
fn get_uint(&self) -> guint
fn set_uint(&mut self, val: guint)
fn get_long(&self) -> glong
fn set_long(&mut self, val: glong)
fn get_ulong(&self) -> gulong
fn set_ulong(&mut self, val: gulong)
fn get_int64(&self) -> i64
fn set_int64(&mut self, val: i64)
fn get_uint64(&self) -> u64
fn set_uint64(&mut self, val: u64)
fn get_float(&self) -> gfloat
fn set_float(&mut self, val: gfloat)
fn get_double(&self) -> gdouble
fn set_double(&mut self, val: gdouble)
fn get_enum<T>(&self) -> Result<T, UnknownEnumValue> where
T: EnumType,
T: EnumType,
fn set_enum<T>(&mut self, val: T) where
T: EnumType,
T: EnumType,
fn get_flags<T>(&self) -> Result<T, UnknownFlags> where
T: FlagsType,
T: FlagsType,
fn set_flags<T>(&mut self, val: T) where
T: FlagsType,
T: FlagsType,
fn get_string(&self) -> Option<&CStr>
fn set_string(&mut self, val: &CStr)
fn set_static_string(&mut self, val: &'static CStr)
fn take_string(&mut self, consumed: OwnedGStr)
fn get_object<T>(&self) -> Option<&T> where
T: ObjectType,
T: ObjectType,
fn set_object<T>(&mut self, val: &T) where
T: ObjectType,
T: ObjectType,
fn dup_boxed<T>(&self) -> Option<T> where
T: BoxedType,
T: BoxedType,
fn deref_boxed<T>(&self) -> Option<&<T as Deref>::Target> where
T: BoxedType + Deref,
T: BoxedType + Deref,
fn take_boxed<T>(&mut self, val: T) where
T: BoxedType,
T: BoxedType,
Trait Implementations
impl Drop for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more