pub struct DateTime { /* private fields */ }
Expand description
The local date and time at the location
Implementations§
Source§impl DateTime
impl DateTime
Sourcepub fn from_current_departure_time() -> Self
pub fn from_current_departure_time() -> Self
Current departure time
Sourcepub fn from_departure_time(depart_after: NaiveDateTime) -> Self
pub fn from_departure_time(depart_after: NaiveDateTime) -> Self
Specified departure time
Sourcepub fn from_arrival_time(arrive_by: NaiveDateTime) -> Self
pub fn from_arrival_time(arrive_by: NaiveDateTime) -> Self
Specified arrival time
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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