Struct Asn1TimeRef
pub struct Asn1TimeRef(/* private fields */);
Expand description
A borrowed reference to a Asn1Time
.
Implementations§
§impl Asn1TimeRef
impl Asn1TimeRef
pub fn diff(&self, compare: &Asn1TimeRef) -> Result<TimeDiff, ErrorStack>
pub fn diff(&self, compare: &Asn1TimeRef) -> Result<TimeDiff, ErrorStack>
Find difference between two times
This corresponds to ASN1_TIME_diff
.
pub fn compare(&self, other: &Asn1TimeRef) -> Result<Ordering, ErrorStack>
pub fn compare(&self, other: &Asn1TimeRef) -> Result<Ordering, ErrorStack>
Compare two times
This corresponds to ASN1_TIME_compare
.
Trait Implementations§
§impl AsMut<Asn1TimeRef> for Asn1Time
impl AsMut<Asn1TimeRef> for Asn1Time
§fn as_mut(&mut self) -> &mut Asn1TimeRef
fn as_mut(&mut self) -> &mut Asn1TimeRef
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsRef<Asn1TimeRef> for Asn1Time
impl AsRef<Asn1TimeRef> for Asn1Time
§fn as_ref(&self) -> &Asn1TimeRef
fn as_ref(&self) -> &Asn1TimeRef
Converts this type into a shared reference of the (usually inferred) input type.
§impl Borrow<Asn1TimeRef> for Asn1Time
impl Borrow<Asn1TimeRef> for Asn1Time
§fn borrow(&self) -> &Asn1TimeRef
fn borrow(&self) -> &Asn1TimeRef
Immutably borrows from an owned value. Read more
§impl BorrowMut<Asn1TimeRef> for Asn1Time
impl BorrowMut<Asn1TimeRef> for Asn1Time
§fn borrow_mut(&mut self) -> &mut Asn1TimeRef
fn borrow_mut(&mut self) -> &mut Asn1TimeRef
Mutably borrows from an owned value. Read more
§impl Debug for Asn1TimeRef
impl Debug for Asn1TimeRef
§impl Display for Asn1TimeRef
impl Display for Asn1TimeRef
§impl ForeignTypeRef for Asn1TimeRef
impl ForeignTypeRef for Asn1TimeRef
§impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialEq<&'a Asn1TimeRef> for Asn1Time
§impl PartialEq<Asn1Time> for &Asn1TimeRef
impl PartialEq<Asn1Time> for &Asn1TimeRef
§impl PartialEq<Asn1Time> for Asn1TimeRef
impl PartialEq<Asn1Time> for Asn1TimeRef
§impl PartialEq<Asn1TimeRef> for Asn1Time
impl PartialEq<Asn1TimeRef> for Asn1Time
§impl PartialEq for Asn1TimeRef
impl PartialEq for Asn1TimeRef
§impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
impl<'a> PartialOrd<&'a Asn1TimeRef> for Asn1Time
§impl PartialOrd<Asn1Time> for &Asn1TimeRef
impl PartialOrd<Asn1Time> for &Asn1TimeRef
§impl PartialOrd<Asn1Time> for Asn1TimeRef
impl PartialOrd<Asn1Time> for Asn1TimeRef
§impl PartialOrd<Asn1TimeRef> for Asn1Time
impl PartialOrd<Asn1TimeRef> for Asn1Time
§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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more§impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
type Error = <U as RamaTryFrom<T>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
impl<T, U> RamaTryInto<U> for Twhere
U: RamaTryFrom<T>,
type Error = <U as RamaTryFrom<T>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T>>::Error>
§impl<T> ToSmolStr for T
impl<T> ToSmolStr for T
fn to_smolstr(&self) -> SmolStr
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.