#[repr(C)]pub struct Variant { /* private fields */ }
Implementations§
Source§impl Variant
impl Variant
pub fn new() -> Self
pub fn as_ptr(&self) -> *const c_void
pub fn get_type(&self) -> VariantType
pub fn get_empty(&self) -> Option<()>
pub fn set_empty(&mut self)
pub fn get_bool(&self) -> Option<bool>
pub fn set_bool(&mut self, val: bool)
pub fn new_bool(val: bool) -> Variant
pub fn get_i32(&self) -> Option<i32>
pub fn set_i32(&mut self, val: i32)
pub fn new_i32(val: i32) -> Variant
pub fn get_f64(&self) -> Option<f64>
pub fn set_f64(&mut self, val: f64)
pub fn new_f64(val: f64) -> Variant
pub fn get_str(&self) -> Option<&[u16]>
pub fn set_str(&mut self, val: &[u16])
pub fn new_str(val: &[u16]) -> Variant
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl !Send for Variant
impl !Sync for Variant
impl Unpin for Variant
impl UnwindSafe for Variant
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