pub struct TimeAgo { /* private fields */ }Implementations§
Source§impl TimeAgo
impl TimeAgo
pub fn with_config(config: Config, time_type: TimeType) -> TimeAgo
pub fn from_duration(config: Config, duration: Duration) -> TimeAgo
pub fn from_system_time(config: Config, system_time: SystemTime) -> TimeAgo
pub fn now(config: Config) -> TimeAgo
pub fn from_instant(config: Config, instant: Instant) -> TimeAgo
pub fn convert(&self) -> String
Trait Implementations§
Source§impl Ord for TimeAgo
impl Ord for TimeAgo
Source§impl PartialOrd for TimeAgo
impl PartialOrd for TimeAgo
impl Copy for TimeAgo
impl Eq for TimeAgo
impl StructuralPartialEq for TimeAgo
Auto Trait Implementations§
impl Freeze for TimeAgo
impl RefUnwindSafe for TimeAgo
impl Send for TimeAgo
impl Sync for TimeAgo
impl Unpin for TimeAgo
impl UnwindSafe for TimeAgo
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