pub struct Asn1TimeRef(/* private fields */);
Expand description
Reference to an Asn1Time
Implementations§
source§impl Asn1TimeRef
impl Asn1TimeRef
sourcepub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack>
pub fn diff(&self, compare: &Self) -> Result<TimeDiff, ErrorStack>
Find difference between two times
This corresponds to ASN1_TIME_diff
.
sourcepub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack>
pub fn compare(&self, other: &Self) -> Result<Ordering, ErrorStack>
Compare two times
This corresponds to ASN1_TIME_compare
.
Trait Implementations§
source§impl AsRef<Asn1TimeRef> for Asn1Time
impl AsRef<Asn1TimeRef> for Asn1Time
source§fn as_ref(&self) -> &Asn1TimeRef
fn as_ref(&self) -> &Asn1TimeRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<Asn1TimeRef> for Asn1Time
impl Borrow<Asn1TimeRef> for Asn1Time
source§fn borrow(&self) -> &Asn1TimeRef
fn borrow(&self) -> &Asn1TimeRef
Immutably borrows from an owned value. Read more
source§impl Debug for Asn1TimeRef
impl Debug for Asn1TimeRef
source§impl Display for Asn1TimeRef
impl Display for Asn1TimeRef
source§impl ForeignTypeRef for Asn1TimeRef
impl ForeignTypeRef for Asn1TimeRef
source§impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
source§impl PartialEq<Asn1Time> for &Asn1TimeRef
impl PartialEq<Asn1Time> for &Asn1TimeRef
source§impl PartialEq<Asn1Time> for Asn1TimeRef
impl PartialEq<Asn1Time> for Asn1TimeRef
source§impl PartialEq<Asn1TimeRef> for Asn1Time
impl PartialEq<Asn1TimeRef> for Asn1Time
source§impl PartialEq for Asn1TimeRef
impl PartialEq for Asn1TimeRef
source§impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
source§impl PartialOrd<Asn1Time> for &Asn1TimeRef
impl PartialOrd<Asn1Time> for &Asn1TimeRef
source§impl PartialOrd<Asn1Time> for Asn1TimeRef
impl PartialOrd<Asn1Time> for Asn1TimeRef
source§impl PartialOrd<Asn1TimeRef> for Asn1Time
impl PartialOrd<Asn1TimeRef> for Asn1Time
source§impl PartialOrd for Asn1TimeRef
impl PartialOrd for Asn1TimeRef
impl Send for Asn1TimeRef
impl Sync for Asn1TimeRef
Auto Trait Implementations§
impl !Freeze for Asn1TimeRef
impl !RefUnwindSafe for Asn1TimeRef
impl Unpin for Asn1TimeRef
impl UnwindSafe for Asn1TimeRef
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
Mutably borrows from an owned value. Read more