Struct TimeZonePrecedingTransitions
struct TimeZonePrecedingTransitions<'t> { ... }
An iterator over time zone transitions going backward in time.
This iterator is created by TimeZone::preceding.
Example: show the 5 previous time zone transitions
This shows how to find the 5 preceding time zone transitions (from a particular datetime) for a particular time zone:
use ;
let now: Zoned = "2024-12-31 18:25-05[US/Eastern]".parse?;
let transitions = now
.time_zone
.preceding
.take
.map
.;
assert_eq!;
# Ok::
Implementations
impl<'t> Clone for TimeZonePrecedingTransitions<'t>
fn clone(self: &Self) -> TimeZonePrecedingTransitions<'t>
impl<'t> Debug for TimeZonePrecedingTransitions<'t>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<'t> Freeze for TimeZonePrecedingTransitions<'t>
impl<'t> FusedIterator for TimeZonePrecedingTransitions<'t>
impl<'t> Iterator for TimeZonePrecedingTransitions<'t>
fn next(self: &mut Self) -> Option<TimeZoneTransition<'t>>
impl<'t> RefUnwindSafe for TimeZonePrecedingTransitions<'t>
impl<'t> Send for TimeZonePrecedingTransitions<'t>
impl<'t> Sync for TimeZonePrecedingTransitions<'t>
impl<'t> Unpin for TimeZonePrecedingTransitions<'t>
impl<'t> UnwindSafe for TimeZonePrecedingTransitions<'t>
impl<I> IntoIterator for TimeZonePrecedingTransitions<'t>
fn into_iter(self: Self) -> I
impl<T> Any for TimeZonePrecedingTransitions<'t>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for TimeZonePrecedingTransitions<'t>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for TimeZonePrecedingTransitions<'t>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for TimeZonePrecedingTransitions<'t>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for TimeZonePrecedingTransitions<'t>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for TimeZonePrecedingTransitions<'t>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for TimeZonePrecedingTransitions<'t>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for TimeZonePrecedingTransitions<'t>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for TimeZonePrecedingTransitions<'t>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>