Struct oaidl::Int [−][src]
pub struct Int(pub i32);
Helper type for the OLE/COM+ type INT
Trait Implementations
impl SafeArrayElement for Int
[src]
impl SafeArrayElement for Int
const SFTYPE: u32
SFTYPE: u32 = VT_INT
This is the VT value used to create the SAFEARRAY
fn from_safearray(
psa: *mut SAFEARRAY,
ix: i32
) -> Result<Self, FromSafeArrElemError>
[src]
fn from_safearray(
psa: *mut SAFEARRAY,
ix: i32
) -> Result<Self, FromSafeArrElemError>
gets a type from the safearray at the specified index (default impls use SafeArrayGetElement)
fn into_safearray(
&mut self,
psa: *mut SAFEARRAY,
ix: i32
) -> Result<(), IntoSafeArrElemError>
[src]
fn into_safearray(
&mut self,
psa: *mut SAFEARRAY,
ix: i32
) -> Result<(), IntoSafeArrElemError>
puts a type into the safearray at the specified index (default impls use SafeArrayPutElement)
impl Debug for Int
[src]
impl Debug for Int
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Int
[src]
impl Clone for Int
fn clone(&self) -> Int
[src]
fn clone(&self) -> Int
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Int
[src]
impl Copy for Int
impl Eq for Int
[src]
impl Eq for Int
impl Hash for Int
[src]
impl Hash for Int
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Int
[src]
impl Ord for Int
fn cmp(&self, other: &Int) -> Ordering
[src]
fn cmp(&self, other: &Int) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for Int
[src]
impl PartialEq for Int
fn eq(&self, other: &Int) -> bool
[src]
fn eq(&self, other: &Int) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Int) -> bool
[src]
fn ne(&self, other: &Int) -> bool
This method tests for !=
.
impl PartialOrd for Int
[src]
impl PartialOrd for Int
fn partial_cmp(&self, other: &Int) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Int) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Int) -> bool
[src]
fn lt(&self, other: &Int) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Int) -> bool
[src]
fn le(&self, other: &Int) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Int) -> bool
[src]
fn gt(&self, other: &Int) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Int) -> bool
[src]
fn ge(&self, other: &Int) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl AsRef<i32> for Int
[src]
impl AsRef<i32> for Int
impl VariantExt for Int
[src]
impl VariantExt for Int
const VARTYPE: u32
VARTYPE: u32 = VT_INT
VARTYPE constant value for the type
fn from_variant(var: Ptr<VARIANT>) -> Result<Self, FromVariantError>
[src]
fn from_variant(var: Ptr<VARIANT>) -> Result<Self, FromVariantError>
Call this associated function on a Ptr to obtain a value T
fn into_variant(&mut self) -> Result<Ptr<VARIANT>, IntoVariantError>
[src]
fn into_variant(&mut self) -> Result<Ptr<VARIANT>, IntoVariantError>
Convert a value of type T into a Ptr