#[non_exhaustive]pub enum Written {
Plain,
SingleQuoted,
DoubleQuoted,
Literal,
Folded,
MultilineBasic,
MultilineLiteral,
Alias,
Collection,
}Available on crate features
input-toml or input-yaml only.Expand description
How the value of an Entry is written.
Non-exhaustive: a later release can name another way to write a value.
TOML writes a string four ways, which map onto the first two quoted forms
and the two multi-line ones, and writes a number, a boolean or a date as
Written::Plain.
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.
Plain
A YAML plain scalar, or a TOML number, boolean or date.
SingleQuoted
A single-quoted YAML scalar, or a TOML literal string '…'.
DoubleQuoted
A double-quoted YAML scalar, or a TOML basic string "…".
Literal
A YAML literal block scalar, |.
Folded
A YAML folded block scalar, >.
MultilineBasic
A TOML multi-line basic string, """…""".
MultilineLiteral
A TOML multi-line literal string, '''…'''.
Alias
A YAML alias, *name.
Collection
A YAML sequence or mapping, or a TOML array or table.
Trait Implementations§
impl Copy for Written
impl Eq for Written
impl StructuralPartialEq for Written
Auto Trait Implementations§
impl Forget for Written
impl Freeze for Written
impl Move for Written
impl RefUnwindSafe for Written
impl Send for Written
impl Sync for Written
impl Unpin for Written
impl UnsafeUnpin for Written
impl UnwindSafe for Written
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