#[repr(align(64))]pub struct TimestampCache { /* private fields */ }Expand description
Optimized cache-friendly timestamp cache for frequent conversions Used for caching and reusing conversion results for common timestamps
Implementations§
Source§impl TimestampCache
impl TimestampCache
Sourcepub fn get_or_convert_ms(&mut self, ms: u64) -> u64
pub fn get_or_convert_ms(&mut self, ms: u64) -> u64
Get or calculate nanosecond timestamp from milliseconds
Sourcepub fn get_or_convert_iso8601(&mut self, iso_smartstring: &str) -> Option<u64>
pub fn get_or_convert_iso8601(&mut self, iso_smartstring: &str) -> Option<u64>
Get or calculate nanosecond timestamp from ISO8601 String
Trait Implementations§
Source§impl Debug for TimestampCache
impl Debug for TimestampCache
Auto Trait Implementations§
impl Freeze for TimestampCache
impl RefUnwindSafe for TimestampCache
impl Send for TimestampCache
impl Sync for TimestampCache
impl Unpin for TimestampCache
impl UnwindSafe for TimestampCache
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