Struct windows_core::VARIANT
pub struct VARIANT(/* private fields */);
Expand description
A VARIANT (VARIANT) is a container that can store different types of values.
Implementations§
§impl VARIANT
impl VARIANT
pub fn new() -> Self
pub fn new() -> Self
Create an empty VARIANT
.
This function does not allocate memory.
pub unsafe fn from_raw(raw: VARIANT) -> Self
pub unsafe fn from_raw(raw: VARIANT) -> Self
Creates a VARIANT
by taking ownership of the raw data.
§Safety
The raw data must be owned by the caller and represent a valid VARIANT
data structure.
pub fn as_raw(&self) -> &VARIANT
pub fn as_raw(&self) -> &VARIANT
Returns the underlying raw data for the VARIANT
.
Trait Implementations§
§impl TryFrom<&PROPVARIANT> for VARIANT
impl TryFrom<&PROPVARIANT> for VARIANT
§impl TryFrom<&VARIANT> for PROPVARIANT
impl TryFrom<&VARIANT> for PROPVARIANT
impl Eq for VARIANT
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)