Skip to main content

Qualified

Struct Qualified 

Source
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>

Source

pub const fn qualifier(&self) -> &CalendarQualifier<'a>

The qualifier.

Source

pub const fn value(&self) -> &T

The underlying value.

Source

pub fn into_unqualified(self) -> T

Consume, yielding the value. Named so that discarding the qualifier is a visible act rather than a coercion.

Source

pub const fn warning(&self) -> Option<Warning>

The warning this rendering carries, if any (UCAL-W0005 for legacy).

Trait Implementations§

Source§

impl<'a, T: Clone> Clone for Qualified<'a, T>

Source§

fn clone(&self) -> Qualified<'a, T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a, T: Copy> Copy for Qualified<'a, T>

Source§

impl<'a, T: Debug> Debug for Qualified<'a, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Display> Display for Qualified<'_, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

earth-civil: 2026-07-29T00:00:00Z, earth-d/1: 2026-208.4137 (§6.6).

Source§

impl<'a, T: Eq> Eq for Qualified<'a, T>

Source§

impl<'a, T: PartialEq> PartialEq for Qualified<'a, T>

Source§

fn eq(&self, other: &Qualified<'a, T>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<U> As for U

Source§

fn as_<T>(self) -> T
where T: CastFrom<U>, U: Sized,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.