#[non_exhaustive]pub enum ExtKind {
OffsetDateTime,
LocalDateTime,
LocalDate,
LocalTime,
EnumLiteral,
CharLiteral,
NumberSpecial,
}Expand description
The kind of a format-specific Value::Extended scalar. Mirrors the core’s
ExtKind and the C ABI’s FigExtKind; the discriminants match that ABI.
Variants (Non-exhaustive)§
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.
OffsetDateTime
TOML offset date-time, e.g. 1979-05-27T07:32:00Z.
LocalDateTime
TOML local date-time, e.g. 1979-05-27T07:32:00.
LocalDate
TOML local date, e.g. 1979-05-27.
LocalTime
TOML local time, e.g. 07:32:00.
EnumLiteral
ZON enum literal, e.g. .foo (text is the bare name, without the dot).
CharLiteral
ZON character literal, e.g. 'a' (text is the decimal codepoint).
NumberSpecial
A non-finite JSON5 number (Infinity/-Infinity/NaN); text is the
literal as written.
Trait Implementations§
impl Copy for ExtKind
impl Eq for ExtKind
impl StructuralPartialEq for ExtKind
Auto Trait Implementations§
impl Freeze for ExtKind
impl RefUnwindSafe for ExtKind
impl Send for ExtKind
impl Sync for ExtKind
impl Unpin for ExtKind
impl UnsafeUnpin for ExtKind
impl UnwindSafe for ExtKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.