pub(crate) struct DiagnosticName<'a>(&'a TimeZone);
Expand description
A helper type for converting a TimeZone
to a succinct human readable
description.
This is principally used in error messages in various places.
A previous iteration of this was just an as_str() -> &str
method on
TimeZone
, but that’s difficult to do without relying on dynamic memory
allocation (or chunky arrays).
Tuple Fields§
§0: &'a TimeZone
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DiagnosticName<'a>
impl<'a> RefUnwindSafe for DiagnosticName<'a>
impl<'a> Send for DiagnosticName<'a>
impl<'a> Sync for DiagnosticName<'a>
impl<'a> Unpin for DiagnosticName<'a>
impl<'a> UnwindSafe for DiagnosticName<'a>
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