Variant

Enum Variant 

Source
pub enum Variant {
Show 16 variants None, I8(i8), I16(i16), I32(i32), I64(i64), U8(u8), U16(u16), U32(u32), U64(u64), F32(f32), F64(f64), Bool(bool), Currency(Currency), String(IntercomString), SystemTime(SystemTime), IUnknown(ComRc<dyn IUnknown>),
}

Variants§

§

None

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

F32(f32)

§

F64(f64)

§

Bool(bool)

§

Currency(Currency)

§

String(IntercomString)

§

SystemTime(SystemTime)

§

IUnknown(ComRc<dyn IUnknown>)

Implementations§

Source§

impl Variant

Source

pub fn raw_type(&self) -> u16

Source

pub unsafe fn from_raw<TS: TypeSystem>(src: Variant<TS>) -> ComResult<Self>

§Safety

The source variant must be a valid variant.

Trait Implementations§

Source§

impl Clone for Variant

Source§

fn clone(&self) -> Variant

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Variant

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Variant

Source§

fn default() -> Self

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

impl<TS: TypeSystem> ExternInput<TS> for Variant

Source§

impl<TS: TypeSystem> ExternOutput<TS> for Variant

Source§

impl<TS: TypeSystem> ExternType<TS> for Variant

Source§

impl ForeignType for Variant

Source§

fn type_name() -> &'static str

The default name is the name of the type.

Source§

fn indirection_level() -> u32

Source§

impl<T: ComInterface + ?Sized> From<&ComItf<T>> for Variant

Source§

fn from(src: &ComItf<T>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Variant> for VariantError

Source§

fn from(_: &Variant) -> Self

Converts to this type from the input type.
Source§

impl From<()> for Variant

Source§

fn from(_: ()) -> Self

Converts to this type from the input type.
Source§

impl<T: HasInterface<dyn IUnknown>> From<ComBox<T>> for Variant

Source§

fn from(src: ComBox<T>) -> Self

Converts to this type from the input type.
Source§

impl<T: ComInterface + ?Sized> From<ComRc<T>> for Variant

Source§

fn from(src: ComRc<T>) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTime> for Variant

Source§

fn from(src: SystemTime) -> Self

Converts to this type from the input type.
Source§

impl<T: Into<IntercomString>> From<T> for Variant

Source§

fn from(src: T) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Variant

Source§

fn from(src: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Variant

Source§

fn from(src: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Variant

Source§

fn from(src: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Variant

Source§

fn from(src: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Variant

Source§

fn from(src: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Variant

Source§

fn from(src: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Variant

Source§

fn from(src: i8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Variant

Source§

fn from(src: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Variant

Source§

fn from(src: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Variant

Source§

fn from(src: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Variant

Source§

fn from(src: u8) -> Self

Converts to this type from the input type.
Source§

impl TryFrom<Variant> for ()

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<(), Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for BString

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<BString, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for CString

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<CString, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for String

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<String, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for SystemTime

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<SystemTime, Self::Error>

Performs the conversion.
Source§

impl<TS: TypeSystem> TryFrom<Variant> for Variant<TS>

Source§

type Error = ComError

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

fn try_from(src: Variant) -> ComResult<Self>

Performs the conversion.
Source§

impl TryFrom<Variant> for bool

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<bool, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for f32

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<f32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for f64

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<f64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for i16

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<i16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for i32

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<i32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for i64

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<i64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for i8

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<i8, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for u16

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<u16, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for u32

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<u32, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for u64

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<u64, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Variant> for u8

Source§

type Error = VariantError

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

fn try_from(src: Variant) -> Result<u8, Self::Error>

Performs the conversion.

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> 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§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

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

impl<T> ExternDefault for T

Source§

unsafe fn extern_default() -> T

Safety 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.

Source§

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

Source§

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>,

Source§

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>,

Source§

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.