pub struct Timestamp {
pub date: String,
pub time: String,
}Expand description
The translation date, as __DATE__ and __TIME__ spell it.
Fixed for the whole translation unit, which is what the standard requires and what makes the two macros ordinary object-like macros rather than something the expander has to know about.
Fields§
§date: StringMmm dd yyyy, with the day space padded, which is the format the standard fixes.
time: Stringhh:mm:ss.
Implementations§
Trait Implementations§
impl Eq for Timestamp
impl StructuralPartialEq for Timestamp
Auto Trait Implementations§
impl Freeze for Timestamp
impl RefUnwindSafe for Timestamp
impl Send for Timestamp
impl Sync for Timestamp
impl Unpin for Timestamp
impl UnsafeUnpin for Timestamp
impl UnwindSafe for Timestamp
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