[][src]Enum wmi::variant::Variant

pub enum Variant {
    Empty,
    Null,
    String(String),
    I1(i8),
    I2(i16),
    I4(i32),
    I8(i64),
    Bool(bool),
    UI1(u8),
    UI2(u16),
    UI4(u32),
    UI8(u64),
    Array(Vec<Variant>),
}

Variants

EmptyNullString(String)I1(i8)I2(i16)I4(i32)I8(i64)Bool(bool)UI1(u8)UI2(u16)UI4(u32)UI8(u64)Array(Vec<Variant>)

Methods

impl Variant[src]

Trait Implementations

impl PartialEq<Variant> for Variant[src]

impl Debug for Variant[src]

impl TryFrom<Variant> for String[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for i8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for i16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for i32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for i64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for u8[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for u16[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for u32[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for u64[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Variant> for bool[src]

type Error = Error

The type returned in the event of a conversion error.

impl Hash for Variant[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'de> Deserializer<'de> for Variant[src]

type Error = Error

The error type that can be returned if some error occurs during deserialization. Read more

fn is_human_readable(&self) -> bool[src]

Determine whether Deserialize implementations should expect to deserialize their human-readable form. Read more

impl<'de> Deserialize<'de> for Variant[src]

Auto Trait Implementations

impl Send for Variant

impl Sync for Variant

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]