Struct winsafe::co::VT

source ·
pub struct VT(/* private fields */);
Available on crate features kernel and oleaut only.
Expand description

VARENUM enumeration (u16).

This is a bitflag constant, which implements the NativeBitflag trait.

Implementations§

source§

impl VT

source

pub const unsafe fn from_raw(v: u16) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

source

pub const fn raw(&self) -> u16

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

source§

impl VT

source

pub const EMPTY: Self = _

Nothing.

source

pub const NULL: Self = _

SQL style NULL.

source

pub const I2: Self = _

2 byte signed int.

source

pub const I4: Self = _

4 byte signed int.

source

pub const R4: Self = _

4 byte real.

source

pub const R8: Self = _

8 byte real.

source

pub const CY: Self = _

Currency.

source

pub const DATE: Self = _

Date.

source

pub const BSTR: Self = _

OLE Automation string.

source

pub const DISPATCH: Self = _

IDispatch pointer.

source

pub const ERROR: Self = _

SCODE.

source

pub const BOOL: Self = _

True = -1, False = 0.

source

pub const VARIANT: Self = _

VARIANT pointer.

source

pub const UNKNOWN: Self = _

IUnknown pointer.

source

pub const DECIMAL: Self = _

16 byte fixed point.

source

pub const I1: Self = _

Signed char.

source

pub const UI1: Self = _

Unsigned char.

source

pub const UI2: Self = _

Unsigned short.

source

pub const UI4: Self = _

ULONG.

source

pub const I8: Self = _

Signed 64-bit int.

source

pub const UI8: Self = _

Unsigned 64-bit int.

source

pub const INT: Self = _

Signed machine int.

source

pub const UINT: Self = _

Unsigned machine int.

source

pub const VOID: Self = _

C style void.

source

pub const HRESULT: Self = _

Standard return type.

source

pub const PTR: Self = _

Pointer type.

source

pub const SAFEARRAY: Self = _

Use VT::ARRAY in VARIANT.

source

pub const CARRAY: Self = _

C style array.

source

pub const USERDEFINED: Self = _

User defined type.

source

pub const LPSTR: Self = _

Null terminated string.

source

pub const LPWSTR: Self = _

Wide null terminated string.

source

pub const RECORD: Self = _

User defined type.

source

pub const INT_PTR: Self = _

Signed machine register size width.

source

pub const UINT_PTR: Self = _

Unsigned machine register size width.

source

pub const FILETIME: Self = _

source

pub const BLOB: Self = _

Length of prefixed bytes.

source

pub const STREAM: Self = _

Name of the stream follows.

source

pub const STORAGE: Self = _

Name of the storage follows.

source

pub const STREAMED_OBJECT: Self = _

Stream contains an object.

source

pub const STORED_OBJECT: Self = _

Storage contains an object.

source

pub const BLOB_OBJECT: Self = _

Blob contains an object.

source

pub const CF: Self = _

Clipboard format.

source

pub const CLSID: Self = _

A class ID.

source

pub const VERSIONED_STREAM: Self = _

Stream with a GUID version.

source

pub const BSTR_BLOB: Self = _

Reserved for system use.

source

pub const VECTOR: Self = _

Simple counted array.

source

pub const ARRAY: Self = _

SAFEARRAY pointer.

source

pub const BYREF: Self = _

Void pointer for local use.

source

pub const RESERVED: Self = _

source

pub const ILLEGAL: Self = _

source

pub const ILLEGALMASKED: Self = _

source

pub const TYPEMASK: Self = _

Trait Implementations§

source§

impl AsRef<u16> for VT

source§

fn as_ref(&self) -> &u16

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Binary for VT

source§

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

Formats the value using the given formatter.
source§

impl BitAnd for VT

§

type Output = VT

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign for VT

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr for VT

§

type Output = VT

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign for VT

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor for VT

§

type Output = VT

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign for VT

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for VT

source§

fn clone(&self) -> VT

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

impl Debug for VT

source§

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

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

impl Default for VT

source§

fn default() -> VT

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

impl Display for VT

source§

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

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

impl From<VT> for u16

source§

fn from(v: VT) -> Self

Converts to this type from the input type.
source§

impl Hash for VT

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

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

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntUnderlying for VT

§

type Raw = u16

Available on crate feature kernel only.
The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Available on crate feature kernel only.
Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for VT

source§

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

Formats the value using the given formatter.
source§

impl NativeBitflag for VT

source§

fn has(&self, other: Self) -> bool

Available on crate feature kernel only.
Tells whether other bitflag style is present. Read more
source§

impl Not for VT

§

type Output = VT

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Octal for VT

source§

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

Formats the value using the given formatter.
source§

impl Ord for VT

source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for VT

source§

fn eq(&self, other: &VT) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for VT

source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl UpperHex for VT

source§

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

Formats the value using the given formatter.
source§

impl Copy for VT

source§

impl Eq for VT

source§

impl NativeConst for VT

source§

impl Send for VT

source§

impl StructuralPartialEq for VT

Auto Trait Implementations§

§

impl Freeze for VT

§

impl RefUnwindSafe for VT

§

impl Sync for VT

§

impl Unpin for VT

§

impl UnwindSafe for VT

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

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. 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.