Struct oaidl::Currency

source ·
pub struct Currency(/* private fields */);
Expand description

Helper type for the OLE/COM+ type CY

Trait Implementations§

source§

impl AsRef<i64> for Currency

source§

fn as_ref(&self) -> &i64

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

impl Clone for Currency

source§

fn clone(&self) -> Currency

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 Currency

source§

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

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

impl<'c> From<&'c CY> for Currency

source§

fn from(cy: &'c CY) -> Currency

Converts CY to Currency. Copies the internal value from the reference.

source§

impl<'c> From<&'c Currency> for CY

source§

fn from(cy: &'c Currency) -> CY

Converts Currency to CY. Copies the internal value from the reference.

source§

impl<'c> From<&'c mut CY> for Currency

source§

fn from(cy: &'c mut CY) -> Currency

Converts CY to Currency. Copies the internal value from the reference.

source§

impl<'c> From<&'c mut Currency> for CY

source§

fn from(cy: &'c mut Currency) -> CY

Converts Currency to CY. Copies the internal value from the reference.

source§

impl From<CY> for Currency

source§

fn from(cy: CY) -> Currency

Converts CY to Currency. Consumes the CY, and copies the internal value.

source§

impl From<Currency> for CY

source§

fn from(cy: Currency) -> CY

Converts Currency to CY. Consumes the Currency and copies the internal value to CY.

source§

impl From<i64> for Currency

source§

fn from(i: i64) -> Self

Converts to this type from the input type.
source§

impl Hash for Currency

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 PartialEq<Currency> for Currency

source§

fn eq(&self, other: &Currency) -> 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<Currency> for Currency

source§

fn partial_cmp(&self, other: &Currency) -> 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<'c> TryConvert<&'c CY, FromVariantError> for Currency

source§

fn try_convert(val: &'c CY) -> Result<Self, FromVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c Currency, IntoVariantError> for CY

source§

fn try_convert(val: &'c Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut CY, FromVariantError> for Currency

source§

fn try_convert(val: &'c mut CY) -> Result<Self, FromVariantError>

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut Currency, IntoVariantError> for CY

source§

fn try_convert(val: &'c mut Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<*mut CY, FromVariantError> for Box<Currency>

source§

fn try_convert(inner: *mut CY) -> Result<Self, FromVariantError>

Utility method which can fail.
source§

impl TryConvert<CY, ElementError> for Currency

source§

fn try_convert(val: CY) -> Result<Self, ElementError>

Does not return any errors.

source§

impl TryConvert<CY, FromVariantError> for Currency

source§

fn try_convert(val: CY) -> Result<Self, FromVariantError>

Does not return any errors.

source§

impl TryConvert<CY, SafeArrayError> for Currency

source§

fn try_convert(val: CY) -> Result<Self, SafeArrayError>

Does not return any errors.

source§

impl TryConvert<Currency, ElementError> for CY

source§

fn try_convert(val: Currency) -> Result<Self, ElementError>

Does not return any errors.

source§

impl TryConvert<Currency, IntoVariantError> for CY

source§

fn try_convert(val: Currency) -> Result<Self, IntoVariantError>

Does not return any errors.

source§

impl TryConvert<Currency, SafeArrayError> for CY

source§

fn try_convert(val: Currency) -> Result<Self, SafeArrayError>

Does not return any errors.

source§

impl Copy for Currency

source§

impl Eq for Currency

source§

impl SafeArrayElement for Currency

SafeArrayElement impl for Currency:struct.Currency.html . This allows it to be converted into SAFEARRAY with vt = VT_CY.

source§

impl StructuralEq for Currency

source§

impl StructuralPartialEq for Currency

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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, F> TryConvert<T, F> for Twhere T: From<T>, F: Fail,

source§

fn try_convert(val: T) -> Result<T, F>

Blanket TryConvert implementation wherever a From is implemented for T. (Which is all types.) This avoids repetitive code. The compiler monomorphizes the code for F. And because its always an Ok, should optimize this code away.

source§

impl<T, U> TryFrom<U> for Twhere 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 Twhere 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.
source§

impl<OutTy, InTy> VariantExt<InTy> for OutTywhere OutTy: TryConvert<InTy, FromVariantError> + VariantAccess<Field = InTy>, InTy: TryConvert<OutTy, IntoVariantError>,

source§

const VARTYPE: u32 = const VARTYPE: u32 = OutTy::VTYPE;

VARTYPE constant value for the type
source§

fn from_variant(pvar: Ptr<VARIANT>) -> Result<OutTy, FromVariantError>

Call this associated function on a Ptr<VARIANT> to obtain a value T
source§

fn into_variant(value: OutTy) -> Result<Ptr<VARIANT>, IntoVariantError>

Convert a value of type T into a Ptr<VARIANT>