pub struct Value(/* private fields */);
Implementations§
Source§impl Value
impl Value
pub fn new(g_type: GType) -> Value
pub fn value_type(&self) -> GType
pub fn reset(&mut self)
pub fn get_boolean(&self) -> bool
pub fn set_boolean(&mut self, val: bool)
pub fn get_char(&self) -> gchar
pub fn set_char(&mut self, val: gchar)
pub fn get_schar(&self) -> i8
pub fn set_schar(&mut self, val: i8)
pub fn get_uchar(&self) -> guchar
pub fn set_uchar(&mut self, val: guchar)
pub fn get_int(&self) -> gint
pub fn set_int(&mut self, val: gint)
pub fn get_uint(&self) -> guint
pub fn set_uint(&mut self, val: guint)
pub fn get_long(&self) -> glong
pub fn set_long(&mut self, val: glong)
pub fn get_ulong(&self) -> gulong
pub fn set_ulong(&mut self, val: gulong)
pub fn get_int64(&self) -> i64
pub fn set_int64(&mut self, val: i64)
pub fn get_uint64(&self) -> u64
pub fn set_uint64(&mut self, val: u64)
pub fn get_float(&self) -> gfloat
pub fn set_float(&mut self, val: gfloat)
pub fn get_double(&self) -> gdouble
pub fn set_double(&mut self, val: gdouble)
pub fn get_enum<T>(&self) -> Result<T, UnknownEnumValue>where
T: EnumType,
pub fn set_enum<T>(&mut self, val: T)where
T: EnumType,
pub fn get_flags<T>(&self) -> Result<T, UnknownFlags>where
T: FlagsType,
pub fn set_flags<T>(&mut self, val: T)where
T: FlagsType,
pub fn get_string(&self) -> Option<&CStr>
pub fn set_string(&mut self, val: &CStr)
pub fn set_static_string(&mut self, val: &'static CStr)
pub fn take_string(&mut self, consumed: OwnedGStr)
pub fn get_object<T>(&self) -> Option<&T>where
T: ObjectType,
pub fn set_object<T>(&mut self, val: &T)where
T: ObjectType,
pub fn dup_boxed<T>(&self) -> Option<T>where
T: BoxedType,
pub fn deref_boxed<T>(&self) -> Option<&<T as Deref>::Target>
pub fn take_boxed<T>(&mut self, val: T)where
T: BoxedType,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more