Struct oaidl::DecWrapper [−][src]
pub struct DecWrapper(_);
Helper type for the OLE/COM+ type DECIMAL
Methods
impl DecWrapper
[src]
impl DecWrapper
pub fn new(dec: Decimal) -> DecWrapper
[src]
pub fn new(dec: Decimal) -> DecWrapper
wraps a Decimal
from rust_decimal
pub fn unwrap(self) -> Decimal
[src]
pub fn unwrap(self) -> Decimal
Get access to the internal value, consuming it in the process
pub fn borrow(&self) -> &Decimal
[src]
pub fn borrow(&self) -> &Decimal
Get borrow of internal value
pub fn borrow_mut(&mut self) -> &mut Decimal
[src]
pub fn borrow_mut(&mut self) -> &mut Decimal
Get mutable borrow of internal value
Trait Implementations
impl SafeArrayElement for DecWrapper
[src]
impl SafeArrayElement for DecWrapper
const SFTYPE: u32
SFTYPE: u32 = VT_DECIMAL
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 DecWrapper
[src]
impl Debug for DecWrapper
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 DecWrapper
[src]
impl Clone for DecWrapper
fn clone(&self) -> DecWrapper
[src]
fn clone(&self) -> DecWrapper
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 DecWrapper
[src]
impl Copy for DecWrapper
impl Eq for DecWrapper
[src]
impl Eq for DecWrapper
impl Hash for DecWrapper
[src]
impl Hash for DecWrapper
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 DecWrapper
[src]
impl Ord for DecWrapper
fn cmp(&self, other: &DecWrapper) -> Ordering
[src]
fn cmp(&self, other: &DecWrapper) -> 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 DecWrapper
[src]
impl PartialEq for DecWrapper
fn eq(&self, other: &DecWrapper) -> bool
[src]
fn eq(&self, other: &DecWrapper) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DecWrapper) -> bool
[src]
fn ne(&self, other: &DecWrapper) -> bool
This method tests for !=
.
impl PartialOrd for DecWrapper
[src]
impl PartialOrd for DecWrapper
fn partial_cmp(&self, other: &DecWrapper) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DecWrapper) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &DecWrapper) -> bool
[src]
fn lt(&self, other: &DecWrapper) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &DecWrapper) -> bool
[src]
fn le(&self, other: &DecWrapper) -> 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: &DecWrapper) -> bool
[src]
fn gt(&self, other: &DecWrapper) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &DecWrapper) -> bool
[src]
fn ge(&self, other: &DecWrapper) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl From<DECIMAL> for DecWrapper
[src]
impl From<DECIMAL> for DecWrapper
fn from(d: DECIMAL) -> DecWrapper
[src]
fn from(d: DECIMAL) -> DecWrapper
Performs the conversion.
impl<'d> From<&'d DECIMAL> for DecWrapper
[src]
impl<'d> From<&'d DECIMAL> for DecWrapper
fn from(d: &DECIMAL) -> DecWrapper
[src]
fn from(d: &DECIMAL) -> DecWrapper
Performs the conversion.
impl<'d> From<&'d mut DECIMAL> for DecWrapper
[src]
impl<'d> From<&'d mut DECIMAL> for DecWrapper
fn from(d: &mut DECIMAL) -> DecWrapper
[src]
fn from(d: &mut DECIMAL) -> DecWrapper
Performs the conversion.
impl From<DecWrapper> for DECIMAL
[src]
impl From<DecWrapper> for DECIMAL
fn from(d: DecWrapper) -> DECIMAL
[src]
fn from(d: DecWrapper) -> DECIMAL
Performs the conversion.
impl<'d> From<&'d DecWrapper> for DECIMAL
[src]
impl<'d> From<&'d DecWrapper> for DECIMAL
fn from(d: &DecWrapper) -> DECIMAL
[src]
fn from(d: &DecWrapper) -> DECIMAL
Performs the conversion.
impl<'d> From<&'d mut DecWrapper> for DECIMAL
[src]
impl<'d> From<&'d mut DecWrapper> for DECIMAL
fn from(d: &mut DecWrapper) -> DECIMAL
[src]
fn from(d: &mut DecWrapper) -> DECIMAL
Performs the conversion.
impl From<DecWrapper> for Decimal
[src]
impl From<DecWrapper> for Decimal
fn from(dw: DecWrapper) -> Decimal
[src]
fn from(dw: DecWrapper) -> Decimal
Performs the conversion.
impl<'w> From<&'w DecWrapper> for Decimal
[src]
impl<'w> From<&'w DecWrapper> for Decimal
fn from(dw: &DecWrapper) -> Decimal
[src]
fn from(dw: &DecWrapper) -> Decimal
Performs the conversion.
impl<'w> From<&'w mut DecWrapper> for Decimal
[src]
impl<'w> From<&'w mut DecWrapper> for Decimal
fn from(dw: &mut DecWrapper) -> Decimal
[src]
fn from(dw: &mut DecWrapper) -> Decimal
Performs the conversion.
impl From<Decimal> for DecWrapper
[src]
impl From<Decimal> for DecWrapper
fn from(dec: Decimal) -> DecWrapper
[src]
fn from(dec: Decimal) -> DecWrapper
Performs the conversion.
impl<'d> From<&'d Decimal> for DecWrapper
[src]
impl<'d> From<&'d Decimal> for DecWrapper
fn from(dec: &Decimal) -> DecWrapper
[src]
fn from(dec: &Decimal) -> DecWrapper
Performs the conversion.
impl<'d> From<&'d mut Decimal> for DecWrapper
[src]
impl<'d> From<&'d mut Decimal> for DecWrapper
fn from(dec: &mut Decimal) -> DecWrapper
[src]
fn from(dec: &mut Decimal) -> DecWrapper
Performs the conversion.
impl AsRef<Decimal> for DecWrapper
[src]
impl AsRef<Decimal> for DecWrapper
impl VariantExt for DecWrapper
[src]
impl VariantExt for DecWrapper
const VARTYPE: u32
VARTYPE: u32 = VT_DECIMAL
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
Auto Trait Implementations
impl Send for DecWrapper
impl Send for DecWrapper
impl Sync for DecWrapper
impl Sync for DecWrapper