Struct oaidl::Date

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

Helper type for the OLE/COM+ type DATE

Trait Implementations§

source§

impl AsRef<f64> for Date

source§

fn as_ref(&self) -> &f64

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

impl Clone for Date

source§

fn clone(&self) -> Date

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 Date

source§

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

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

impl<'f> From<&'f Date> for f64

source§

fn from(o: &'f Date) -> Self

Converts to this type from the input type.
source§

impl<'f> From<&'f f64> for Date

source§

fn from(i: &'f f64) -> Self

Converts to this type from the input type.
source§

impl<'f> From<&'f mut Date> for f64

source§

fn from(o: &'f mut Date) -> Self

Converts to this type from the input type.
source§

impl<'f> From<&'f mut f64> for Date

source§

fn from(i: &'f mut f64) -> Self

Converts to this type from the input type.
source§

impl From<Date> for f64

source§

fn from(o: Date) -> Self

Converts to this type from the input type.
source§

impl From<f64> for Date

source§

fn from(i: f64) -> Self

Converts to this type from the input type.
source§

impl PartialEq<Date> for Date

source§

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

source§

fn partial_cmp(&self, other: &Date) -> 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 Date, IntoVariantError> for f64

source§

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

Does not return any errors.

source§

impl<'c> TryConvert<&'c f64, FromVariantError> for Date

source§

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

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut Date, IntoVariantError> for f64

source§

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

Does not return any errors.

source§

impl<'c> TryConvert<&'c mut f64, FromVariantError> for Date

source§

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

Does not return any errors.

source§

impl TryConvert<*mut f64, FromVariantError> for Box<Date>

source§

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

Utility method which can fail.
source§

impl TryConvert<Date, ElementError> for f64

source§

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

Does not return any errors.

source§

impl TryConvert<Date, IntoVariantError> for f64

source§

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

Does not return any errors.

source§

impl TryConvert<Date, SafeArrayError> for f64

source§

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

Does not return any errors.

source§

impl TryConvert<f64, ElementError> for Date

source§

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

Does not return any errors.

source§

impl TryConvert<f64, FromVariantError> for Date

source§

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

Does not return any errors.

source§

impl TryConvert<f64, SafeArrayError> for Date

source§

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

Does not return any errors.

source§

impl Copy for Date

source§

impl SafeArrayElement for Date

SafeArrayElement impl for [‘Date’]: struct.Date.html. This allows it to be converted into SAFEARRAY with vt = VT_DATE.

source§

impl StructuralPartialEq for Date

Auto Trait Implementations§

§

impl RefUnwindSafe for Date

§

impl Send for Date

§

impl Sync for Date

§

impl Unpin for Date

§

impl UnwindSafe for Date

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>