Struct oaidl::DecWrapper
source · pub struct DecWrapper(/* private fields */);
Expand description
Helper type for the OLE/COM+ type DECIMAL
Implementations§
source§impl DecWrapper
impl DecWrapper
sourcepub fn new(dec: Decimal) -> DecWrapper
pub fn new(dec: Decimal) -> DecWrapper
wraps a Decimal
from rust_decimal
sourcepub fn borrow_mut(&mut self) -> &mut Decimal
pub fn borrow_mut(&mut self) -> &mut Decimal
Get mutable borrow of internal value
Trait Implementations§
source§impl AsRef<Decimal> for DecWrapper
impl AsRef<Decimal> for DecWrapper
source§impl Clone for DecWrapper
impl Clone for DecWrapper
source§fn clone(&self) -> DecWrapper
fn clone(&self) -> DecWrapper
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DecWrapper
impl Debug for DecWrapper
source§impl<'d> From<&'d DECIMAL> for DecWrapper
impl<'d> From<&'d DECIMAL> for DecWrapper
source§fn from(d: &'d DECIMAL) -> DecWrapper
fn from(d: &'d DECIMAL) -> DecWrapper
Converts DECIMAL into a Decimal wrapped in a DecWrapper Allocates a new Decimal.
source§impl<'d> From<&'d DecWrapper> for DECIMAL
impl<'d> From<&'d DecWrapper> for DECIMAL
source§fn from(d: &'d DecWrapper) -> DECIMAL
fn from(d: &'d DecWrapper) -> DECIMAL
Converts a DecWrapper into DECIMAL. Allocates a new DECIMAL
source§impl<'w> From<&'w DecWrapper> for Decimal
impl<'w> From<&'w DecWrapper> for Decimal
source§fn from(dw: &'w DecWrapper) -> Decimal
fn from(dw: &'w DecWrapper) -> Decimal
Converts a DecWrapper into Decimal. Zero cost or allocations.
source§impl<'d> From<&'d Decimal> for DecWrapper
impl<'d> From<&'d Decimal> for DecWrapper
source§fn from(dec: &'d Decimal) -> DecWrapper
fn from(dec: &'d Decimal) -> DecWrapper
Converts a Decimal into a DecWrapper. Zero cost or allocations.
source§impl<'d> From<&'d mut DECIMAL> for DecWrapper
impl<'d> From<&'d mut DECIMAL> for DecWrapper
source§fn from(d: &'d mut DECIMAL) -> DecWrapper
fn from(d: &'d mut DECIMAL) -> DecWrapper
Converts DECIMAL into a Decimal wrapped in a DecWrapper Allocates a new Decimal.
source§impl<'d> From<&'d mut DecWrapper> for DECIMAL
impl<'d> From<&'d mut DecWrapper> for DECIMAL
source§fn from(d: &'d mut DecWrapper) -> DECIMAL
fn from(d: &'d mut DecWrapper) -> DECIMAL
Converts a DecWrapper into DECIMAL. Allocates a new DECIMAL
source§impl<'w> From<&'w mut DecWrapper> for Decimal
impl<'w> From<&'w mut DecWrapper> for Decimal
source§fn from(dw: &'w mut DecWrapper) -> Decimal
fn from(dw: &'w mut DecWrapper) -> Decimal
Converts a DecWrapper into Decimal. Zero cost or allocations.
source§impl<'d> From<&'d mut Decimal> for DecWrapper
impl<'d> From<&'d mut Decimal> for DecWrapper
source§fn from(dec: &'d mut Decimal) -> DecWrapper
fn from(dec: &'d mut Decimal) -> DecWrapper
Converts a Decimal into a DecWrapper. Zero cost or allocations.
source§impl From<DECIMAL> for DecWrapper
impl From<DECIMAL> for DecWrapper
source§fn from(d: DECIMAL) -> DecWrapper
fn from(d: DECIMAL) -> DecWrapper
Converts DECIMAL into a Decimal wrapped in a DecWrapper. Allocates a new Decimal.
source§impl From<DecWrapper> for DECIMAL
impl From<DecWrapper> for DECIMAL
source§fn from(d: DecWrapper) -> DECIMAL
fn from(d: DecWrapper) -> DECIMAL
Converts a DecWrapper into DECIMAL. Allocates a new DECIMAL
source§impl From<DecWrapper> for Decimal
impl From<DecWrapper> for Decimal
source§fn from(dw: DecWrapper) -> Decimal
fn from(dw: DecWrapper) -> Decimal
Converts a DecWrapper into Decimal. Zero cost or allocations.
source§impl From<Decimal> for DecWrapper
impl From<Decimal> for DecWrapper
source§fn from(dec: Decimal) -> DecWrapper
fn from(dec: Decimal) -> DecWrapper
Converts a Decimal into a DecWrapper. Zero cost or allocations.
source§impl Hash for DecWrapper
impl Hash for DecWrapper
source§impl Ord for DecWrapper
impl Ord for DecWrapper
source§fn cmp(&self, other: &DecWrapper) -> Ordering
fn cmp(&self, other: &DecWrapper) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<DecWrapper> for DecWrapper
impl PartialEq<DecWrapper> for DecWrapper
source§fn eq(&self, other: &DecWrapper) -> bool
fn eq(&self, other: &DecWrapper) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DecWrapper> for DecWrapper
impl PartialOrd<DecWrapper> for DecWrapper
source§fn partial_cmp(&self, other: &DecWrapper) -> Option<Ordering>
fn partial_cmp(&self, other: &DecWrapper) -> 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 DECIMAL, FromVariantError> for DecWrapper
impl<'c> TryConvert<&'c DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: &'c DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c DecWrapper, IntoVariantError> for DECIMAL
impl<'c> TryConvert<&'c DecWrapper, IntoVariantError> for DECIMAL
source§fn try_convert(val: &'c DecWrapper) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c DecWrapper) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut DECIMAL, FromVariantError> for DecWrapper
impl<'c> TryConvert<&'c mut DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: &'c mut DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: &'c mut DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl<'c> TryConvert<&'c mut DecWrapper, IntoVariantError> for DECIMAL
impl<'c> TryConvert<&'c mut DecWrapper, IntoVariantError> for DECIMAL
source§fn try_convert(val: &'c mut DecWrapper) -> Result<Self, IntoVariantError>
fn try_convert(val: &'c mut DecWrapper) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl TryConvert<DECIMAL, ElementError> for DecWrapper
impl TryConvert<DECIMAL, ElementError> for DecWrapper
source§fn try_convert(val: DECIMAL) -> Result<Self, ElementError>
fn try_convert(val: DECIMAL) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<DECIMAL, FromVariantError> for DecWrapper
impl TryConvert<DECIMAL, FromVariantError> for DecWrapper
source§fn try_convert(val: DECIMAL) -> Result<Self, FromVariantError>
fn try_convert(val: DECIMAL) -> Result<Self, FromVariantError>
Does not return any errors.
source§impl TryConvert<DECIMAL, SafeArrayError> for DecWrapper
impl TryConvert<DECIMAL, SafeArrayError> for DecWrapper
source§fn try_convert(val: DECIMAL) -> Result<Self, SafeArrayError>
fn try_convert(val: DECIMAL) -> Result<Self, SafeArrayError>
Does not return any errors.
source§impl TryConvert<DecWrapper, ElementError> for DECIMAL
impl TryConvert<DecWrapper, ElementError> for DECIMAL
source§fn try_convert(val: DecWrapper) -> Result<Self, ElementError>
fn try_convert(val: DecWrapper) -> Result<Self, ElementError>
Does not return any errors.
source§impl TryConvert<DecWrapper, IntoVariantError> for DECIMAL
impl TryConvert<DecWrapper, IntoVariantError> for DECIMAL
source§fn try_convert(val: DecWrapper) -> Result<Self, IntoVariantError>
fn try_convert(val: DecWrapper) -> Result<Self, IntoVariantError>
Does not return any errors.
source§impl TryConvert<DecWrapper, SafeArrayError> for DECIMAL
impl TryConvert<DecWrapper, SafeArrayError> for DECIMAL
source§fn try_convert(val: DecWrapper) -> Result<Self, SafeArrayError>
fn try_convert(val: DecWrapper) -> Result<Self, SafeArrayError>
Does not return any errors.
impl Copy for DecWrapper
impl Eq for DecWrapper
impl SafeArrayElement for DecWrapper
SafeArrayElement
impl for [‘DecWrapper’]. This allows it to be converted into SAFEARRAY with vt = VT_DECIMAL
.
impl StructuralEq for DecWrapper
impl StructuralPartialEq for DecWrapper
Auto Trait Implementations§
impl RefUnwindSafe for DecWrapper
impl Send for DecWrapper
impl Sync for DecWrapper
impl Unpin for DecWrapper
impl UnwindSafe for DecWrapper
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
source§impl<T, F> TryConvert<T, F> for Twhere
T: From<T>,
F: Fail,
impl<T, F> TryConvert<T, F> for Twhere T: From<T>, F: Fail,
source§fn try_convert(val: T) -> Result<T, F>
fn try_convert(val: T) -> Result<T, F>
Blanket TryConvert implementation wherever a From
source§impl<OutTy, InTy> VariantExt<InTy> for OutTywhere
OutTy: TryConvert<InTy, FromVariantError> + VariantAccess<Field = InTy>,
InTy: TryConvert<OutTy, IntoVariantError>,
impl<OutTy, InTy> VariantExt<InTy> for OutTywhere OutTy: TryConvert<InTy, FromVariantError> + VariantAccess<Field = InTy>, InTy: TryConvert<OutTy, IntoVariantError>,
source§fn from_variant(pvar: Ptr<VARIANT>) -> Result<OutTy, FromVariantError>
fn from_variant(pvar: Ptr<VARIANT>) -> Result<OutTy, FromVariantError>
Ptr<VARIANT>
to obtain a value T
source§fn into_variant(value: OutTy) -> Result<Ptr<VARIANT>, IntoVariantError>
fn into_variant(value: OutTy) -> Result<Ptr<VARIANT>, IntoVariantError>
T
into a Ptr<VARIANT>