pub struct Qualified<'a, T> { /* private fields */ }Expand description
A local calendar value together with the qualifier §6.6 requires.
This is the only way to render one. There is deliberately no Display on the
field structs themselves, and no From<Fields> for String, so an unqualified
rendering cannot be produced by accident — see tests/compile_fail/.
Implementations§
Source§impl<'a, T> Qualified<'a, T>
impl<'a, T> Qualified<'a, T>
Sourcepub const fn qualifier(&self) -> &CalendarQualifier<'a>
pub const fn qualifier(&self) -> &CalendarQualifier<'a>
The qualifier.
Sourcepub fn into_unqualified(self) -> T
pub fn into_unqualified(self) -> T
Consume, yielding the value. Named so that discarding the qualifier is a visible act rather than a coercion.
Trait Implementations§
impl<'a, T: Copy> Copy for Qualified<'a, T>
impl<'a, T: Eq> Eq for Qualified<'a, T>
impl<'a, T: PartialEq> StructuralPartialEq for Qualified<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Qualified<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Qualified<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Qualified<'a, T>where
T: Send,
impl<'a, T> Sync for Qualified<'a, T>where
T: Sync,
impl<'a, T> Unpin for Qualified<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Qualified<'a, T>where
T: UnsafeUnpin,
impl<'a, T> UnwindSafe for Qualified<'a, T>where
T: UnwindSafe,
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