Struct oaidl::VariantBool
source · pub struct VariantBool(_);
Expand description
Helper type for the OLE/COM+ type VARIANT_BOOL
A VARIANT_Bool represents true as 0x0, and false as 0xFFFF.
This means there’s a bit of conversion logic required.
Trait Implementations§
source§impl AsRef<bool> for VariantBool
impl AsRef<bool> for VariantBool
source§impl Clone for VariantBool
impl Clone for VariantBool
source§fn clone(&self) -> VariantBool
fn clone(&self) -> VariantBool
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VariantBool
impl Debug for VariantBool
source§impl<'b> From<&'b bool> for VariantBool
impl<'b> From<&'b bool> for VariantBool
source§impl<'b> From<&'b mut bool> for VariantBool
impl<'b> From<&'b mut bool> for VariantBool
source§impl<'v> From<&'v VariantBool> for VARIANT_BOOL
impl<'v> From<&'v VariantBool> for VARIANT_BOOL
source§fn from(vb: &'v VariantBool) -> VARIANT_BOOL
fn from(vb: &'v VariantBool) -> VARIANT_BOOL
Converts a VariantBool into a VARIANT_BOOL.
source§impl<'v> From<&'v VariantBool> for bool
impl<'v> From<&'v VariantBool> for bool
source§fn from(b: &'v VariantBool) -> Self
fn from(b: &'v VariantBool) -> Self
source§impl<'v> From<&'v i16> for VariantBool
impl<'v> From<&'v i16> for VariantBool
source§fn from(vb: &'v VARIANT_BOOL) -> VariantBool
fn from(vb: &'v VARIANT_BOOL) -> VariantBool
Converts a VARIANT_BOOL into a VariantBool.
source§impl<'v> From<&'v mut VariantBool> for VARIANT_BOOL
impl<'v> From<&'v mut VariantBool> for VARIANT_BOOL
source§fn from(vb: &'v mut VariantBool) -> VARIANT_BOOL
fn from(vb: &'v mut VariantBool) -> VARIANT_BOOL
Converts a VariantBool into a VARIANT_BOOL.
source§impl<'v> From<&'v mut VariantBool> for bool
impl<'v> From<&'v mut VariantBool> for bool
source§fn from(b: &'v mut VariantBool) -> Self
fn from(b: &'v mut VariantBool) -> Self
source§impl<'v> From<&'v mut i16> for VariantBool
impl<'v> From<&'v mut i16> for VariantBool
source§fn from(vb: &'v mut VARIANT_BOOL) -> VariantBool
fn from(vb: &'v mut VARIANT_BOOL) -> VariantBool
Converts a VARIANT_BOOL into a VariantBool.
source§impl From<VariantBool> for VARIANT_BOOL
impl From<VariantBool> for VARIANT_BOOL
source§fn from(vb: VariantBool) -> VARIANT_BOOL
fn from(vb: VariantBool) -> VARIANT_BOOL
Converts a VariantBool into a VARIANT_BOOL.
source§impl From<VariantBool> for bool
impl From<VariantBool> for bool
source§fn from(b: VariantBool) -> Self
fn from(b: VariantBool) -> Self
source§impl From<bool> for VariantBool
impl From<bool> for VariantBool
source§impl From<i16> for VariantBool
impl From<i16> for VariantBool
source§fn from(vb: VARIANT_BOOL) -> VariantBool
fn from(vb: VARIANT_BOOL) -> VariantBool
Converts a VARIANT_BOOL into a VariantBool.
source§impl Hash for VariantBool
impl Hash for VariantBool
source§impl Ord for VariantBool
impl Ord for VariantBool
source§fn cmp(&self, other: &VariantBool) -> Ordering
fn cmp(&self, other: &VariantBool) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq<VariantBool> for VariantBool
impl PartialEq<VariantBool> for VariantBool
source§fn eq(&self, other: &VariantBool) -> bool
fn eq(&self, other: &VariantBool) -> bool
source§impl PartialOrd<VariantBool> for VariantBool
impl PartialOrd<VariantBool> for VariantBool
source§fn partial_cmp(&self, other: &VariantBool) -> Option<Ordering>
fn partial_cmp(&self, other: &VariantBool) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for VARIANT_BOOL
impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for VARIANT_BOOL
source§fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for bool
impl<'c> TryConvert<&'c VariantBool, IntoVariantError> for bool
source§fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c bool, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c bool, FromVariantError> for VariantBool
source§fn try_convert(val: &'c bool) -> Result<Self, FromVariantError>
fn try_convert(val: &'c bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c i16, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c i16, FromVariantError> for VariantBool
source§fn try_convert(val: &'c VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for VARIANT_BOOL
impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for VARIANT_BOOL
source§fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for bool
impl<'c> TryConvert<&'c mut VariantBool, IntoVariantError> for bool
source§fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c mut VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut bool, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c mut bool, FromVariantError> for VariantBool
source§fn try_convert(val: &'c mut bool) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut i16, FromVariantError> for VariantBool
impl<'c> TryConvert<&'c mut i16, FromVariantError> for VariantBool
source§fn try_convert(val: &'c mut VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<*mut i16, ConversionError> for Box<VariantBool>
impl TryConvert<*mut i16, ConversionError> for Box<VariantBool>
source§fn try_convert(p: *mut VARIANT_BOOL) -> Result<Self, ConversionError>
fn try_convert(p: *mut VARIANT_BOOL) -> Result<Self, ConversionError>
source§impl TryConvert<*mut i16, FromVariantError> for Box<VariantBool>
impl TryConvert<*mut i16, FromVariantError> for Box<VariantBool>
source§fn try_convert(inner: *mut VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(inner: *mut VARIANT_BOOL) -> Result<Self, FromVariantError>
source§impl TryConvert<VariantBool, ElementError> for VARIANT_BOOL
impl TryConvert<VariantBool, ElementError> for VARIANT_BOOL
source§fn try_convert(val: VariantBool) -> Result<Self, ElementError>
fn try_convert(val: VariantBool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<VariantBool, ElementError> for bool
impl TryConvert<VariantBool, ElementError> for bool
source§fn try_convert(val: VariantBool) -> Result<Self, ElementError>
fn try_convert(val: VariantBool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<VariantBool, IntoVariantError> for VARIANT_BOOL
impl TryConvert<VariantBool, IntoVariantError> for VARIANT_BOOL
source§fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl TryConvert<VariantBool, IntoVariantError> for bool
impl TryConvert<VariantBool, IntoVariantError> for bool
source§fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>
fn try_convert(val: VariantBool) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl TryConvert<VariantBool, SafeArrayError> for VARIANT_BOOL
impl TryConvert<VariantBool, SafeArrayError> for VARIANT_BOOL
source§fn try_convert(val: VariantBool) -> Result<Self, SafeArrayError>
fn try_convert(val: VariantBool) -> Result<Self, SafeArrayError>
Does not return any errors.
source§impl TryConvert<VariantBool, SafeArrayError> for bool
impl TryConvert<VariantBool, SafeArrayError> for bool
source§fn try_convert(val: VariantBool) -> Result<Self, SafeArrayError>
fn try_convert(val: VariantBool) -> Result<Self, SafeArrayError>
Does not return any errors.
source§impl TryConvert<bool, ElementError> for VariantBool
impl TryConvert<bool, ElementError> for VariantBool
source§fn try_convert(val: bool) -> Result<Self, ElementError>
fn try_convert(val: bool) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<bool, FromVariantError> for VariantBool
impl TryConvert<bool, FromVariantError> for VariantBool
source§fn try_convert(val: bool) -> Result<Self, FromVariantError>
fn try_convert(val: bool) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<bool, SafeArrayError> for VariantBool
impl TryConvert<bool, SafeArrayError> for VariantBool
source§fn try_convert(val: bool) -> Result<Self, SafeArrayError>
fn try_convert(val: bool) -> Result<Self, SafeArrayError>
Does not return any errors.
source§impl TryConvert<i16, ElementError> for VariantBool
impl TryConvert<i16, ElementError> for VariantBool
source§fn try_convert(val: VARIANT_BOOL) -> Result<Self, ElementError>
fn try_convert(val: VARIANT_BOOL) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<i16, FromVariantError> for VariantBool
impl TryConvert<i16, FromVariantError> for VariantBool
source§fn try_convert(val: VARIANT_BOOL) -> Result<Self, FromVariantError>
fn try_convert(val: VARIANT_BOOL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<i16, SafeArrayError> for VariantBool
impl TryConvert<i16, SafeArrayError> for VariantBool
source§fn try_convert(val: VARIANT_BOOL) -> Result<Self, SafeArrayError>
fn try_convert(val: VARIANT_BOOL) -> Result<Self, SafeArrayError>
Does not return any errors.
impl Copy for VariantBool
impl Eq for VariantBool
impl SafeArrayElement for VariantBool
SafeArrayElement
impl for [‘VariantBool’]. This allows it to be converted into SAFEARRAY with vt = VT_BOOL
.