pub enum PropVariant {
}
Available on crate feature
oleaut
only.Expand description
High-level representation of the PROPVARIANT
struct,
which is automatically converted into its low-level representation when
needed.
Not to be confused with the similar Variant
.
The fields are named according to the
VARENUM
enumeration.
Variants§
Empty
Nothing.
I2(i16)
2 byte signed int (i16
).
I4(i32)
4 byte signed int (i32
).
R4(f32)
4 byte real (f32
).
R8(f64)
8 byte real (f64
).
Date(SYSTEMTIME)
Date.
Bstr(String)
OLE Automation string.
Dispatch(IDispatch)
IDispatch
pointer.
Bool(bool)
Boolean value (bool
).
Unknown(IUnknown)
IUnknown
pointer.
I1(i8)
Signed char (i8
).
UI1(u8)
Unsigned char (u8
).
UI2(u16)
Unsigned short (u16
).
UI4(u32)
Unsigned long (u32
).
I8(i64)
Signed 64-bit int (i64
).
UI8(u64)
Unsigned 64-bit int (u64
).
Implementations§
Source§impl PropVariant
impl PropVariant
Sourcepub fn from_str(s: impl AsRef<str>) -> Self
pub fn from_str(s: impl AsRef<str>) -> Self
Creates a PropVariant::Bstr
from a string.
Sourcepub fn from_opt_str(s: Option<impl AsRef<str>>) -> Self
pub fn from_opt_str(s: Option<impl AsRef<str>>) -> Self
Creates a PropVariant::Bstr
if a string is
present, otherwise creates a
PropVariant::Empty
.
Trait Implementations§
Source§impl Clone for PropVariant
impl Clone for PropVariant
Source§fn clone(&self) -> PropVariant
fn clone(&self) -> PropVariant
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PropVariant
impl RefUnwindSafe for PropVariant
impl Send for PropVariant
impl !Sync for PropVariant
impl Unpin for PropVariant
impl UnwindSafe for PropVariant
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