#[non_exhaustive]pub enum ScalarSyntax {
Text,
Integer,
Float,
Boolean,
Datetime,
Null,
}Available on crate features
json or toml or yaml only.Expand description
The type a format’s syntax gave a scalar, for a format that types a value by how it is written, such as TOML and JSON.
A format whose scalar rules read the text, such as YAML, sets none, and
Scalar::syntax is None.
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.
Text
Text: a string, or a key.
Integer
An integer, as its canonical decimal text.
Float
A floating-point number.
Boolean
A boolean, as true or false.
Datetime
A date, a time or both, as its text.
Null
A null, as null.
Trait Implementations§
Source§impl Clone for ScalarSyntax
impl Clone for ScalarSyntax
impl Copy for ScalarSyntax
Source§impl Debug for ScalarSyntax
impl Debug for ScalarSyntax
impl Eq for ScalarSyntax
Source§impl PartialEq for ScalarSyntax
impl PartialEq for ScalarSyntax
impl StructuralPartialEq for ScalarSyntax
Auto Trait Implementations§
impl Forget for ScalarSyntax
impl Freeze for ScalarSyntax
impl Move for ScalarSyntax
impl RefUnwindSafe for ScalarSyntax
impl Send for ScalarSyntax
impl Sync for ScalarSyntax
impl Unpin for ScalarSyntax
impl UnsafeUnpin for ScalarSyntax
impl UnwindSafe for ScalarSyntax
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