Enum Warning Copy item path Source #[non_exhaustive]
pub enum Warning {
W0001,
W0002,
W0003,
W0004,
W0005,
W0006,
}Expand description A diagnostic warning from Appendix E’s W-series.
Warnings are separate from Code because they never abort an operation:
they accompany a value that was produced, and the caller decides what to do.
Rule R requires lossy renderings to be reported, and §8.4 requires a stale
leap-second table to warn with a bounded error rather than convert silently.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Precision loss in the requested rendering (Rule R).
Leap-second table may be stale; the bounded error is reported with it.
Body parameter evaluated outside its validity window (Rule C).
Cosmology enclosure width exceeds one tick.
Value produced by a legacy, non-derived calendar (§8.6).
Quantity comparable to or smaller than BIG_BANG_CLAIM; the datum’s
physical identification is uncertain at this scale (§10.6).
The wire-stable code string, e.g. "UCAL-W0001".
One-line description, matching Appendix E.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more 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 Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.