pub struct Value { /* private fields */ }Implementations§
source§impl Value
impl Value
pub unsafe fn new() -> Value
pub fn init(&mut self, _type: Type)
pub fn reset(&mut self)
pub unsafe fn unset(&mut self)
pub fn strdup_value_contents(&mut self) -> Option<String>
pub unsafe fn set_boolean(&mut self, v_boolean: bool)
pub unsafe fn get_boolean(&self) -> bool
pub unsafe fn set_schar(&mut self, v_char: i8)
pub unsafe fn get_schar(&self) -> i8
pub unsafe fn set_uchar(&mut self, v_uchar: u8)
pub unsafe fn get_uchar(&self) -> u8
pub unsafe fn set_int(&mut self, v_int: i32)
pub unsafe fn get_int(&self) -> i32
pub unsafe fn set_uint(&mut self, v_uint: u32)
pub unsafe fn get_uint(&self) -> u32
pub unsafe fn set_long(&mut self, v_long: i64)
pub unsafe fn get_long(&self) -> i64
pub unsafe fn set_ulong(&mut self, v_ulong: u64)
pub unsafe fn get_ulong(&self) -> u64
pub unsafe fn set_int64(&mut self, v_int64: i64)
pub unsafe fn get_int64(&self) -> i64
pub unsafe fn set_uint64(&mut self, v_uint64: u64)
pub unsafe fn get_uint64(&self) -> u64
pub unsafe fn set_float(&mut self, v_float: f32)
pub unsafe fn get_float(&self) -> f32
pub unsafe fn set_double(&mut self, v_double: f64)
pub unsafe fn get_double(&self) -> f64
pub unsafe fn set_string(&mut self, v_string: &str)
pub unsafe fn get_string(&self) -> Option<String>
pub unsafe fn set_boxed<T>(&mut self, v_box: &T)
pub unsafe fn get_boxed<'r, T>(&'r self) -> &'r T
pub unsafe fn set_pointer<T>(&mut self, v_pointer: &T)
pub unsafe fn get_pointer<'r, T>(&'r self) -> &'r T
pub unsafe fn set_object<T>(&mut self, v_object: &T)
pub unsafe fn get_object<'r, T>(&'r self) -> &'r T
pub unsafe fn set_gtype(&mut self, v_gtype: Type)
pub unsafe fn get_gtype(&self) -> Type
pub unsafe fn set<T: ValuePublic>(&mut self, val: &T)
pub unsafe fn get<T: ValuePublic>(&self) -> T
pub fn compatible(src_type: Type, dest_type: Type) -> bool
pub fn transformable(src_type: Type, dest_type: Type) -> bool
pub fn as_ptr(&self) -> *const GValue
pub fn as_mut_ptr(&mut self) -> *mut GValue
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