Union windows::Win32::System::Wmi::MI_Value

#[repr(C)]
pub union MI_Value {
Show 33 fields pub boolean: u8, pub uint8: u8, pub sint8: i8, pub uint16: u16, pub sint16: i16, pub uint32: u32, pub sint32: i32, pub uint64: u64, pub sint64: i64, pub real32: f32, pub real64: f64, pub char16: u16, pub datetime: MI_Datetime, pub string: *mut u16, pub instance: *mut MI_Instance, pub reference: *mut MI_Instance, pub booleana: MI_BooleanA, pub uint8a: MI_Uint8A, pub sint8a: MI_Sint8A, pub uint16a: MI_Uint16A, pub sint16a: MI_Sint16A, pub uint32a: MI_Uint32A, pub sint32a: MI_Sint32A, pub uint64a: MI_Uint64A, pub sint64a: MI_Sint64A, pub real32a: MI_Real32A, pub real64a: MI_Real64A, pub char16a: MI_Char16A, pub datetimea: MI_DatetimeA, pub stringa: MI_StringA, pub referencea: MI_ReferenceA, pub instancea: MI_InstanceA, pub array: MI_Array,
}

Fields§

§boolean: u8§uint8: u8§sint8: i8§uint16: u16§sint16: i16§uint32: u32§sint32: i32§uint64: u64§sint64: i64§real32: f32§real64: f64§char16: u16§datetime: MI_Datetime§string: *mut u16§instance: *mut MI_Instance§reference: *mut MI_Instance§booleana: MI_BooleanA§uint8a: MI_Uint8A§sint8a: MI_Sint8A§uint16a: MI_Uint16A§sint16a: MI_Sint16A§uint32a: MI_Uint32A§sint32a: MI_Sint32A§uint64a: MI_Uint64A§sint64a: MI_Sint64A§real32a: MI_Real32A§real64a: MI_Real64A§char16a: MI_Char16A§datetimea: MI_DatetimeA§stringa: MI_StringA§referencea: MI_ReferenceA§instancea: MI_InstanceA§array: MI_Array

Trait Implementations§

§

impl Clone for MI_Value

§

fn clone(&self) -> MI_Value

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for MI_Value

§

fn default() -> Self

Returns the “default value” for a type. Read more
§

impl Copy for MI_Value

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> Param<T, CopyType> for U
where T: TypeKind<TypeKind = CopyType> + Clone, U: TypeKind<TypeKind = CopyType> + Clone + CanInto<T>,

§

unsafe fn param(self) -> ParamValue<T>

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.