Struct toml_edit::Key [−][src]
pub struct Key { /* fields omitted */ }
Expand description
Key as part of a Key/Value Pair or a table header.
Examples
[dependencies."nom"]
version = "5.0"
'literal key' = "nonsense"
"basic string key" = 42
There are 3 types of keys:
-
Bare keys (
version
anddependencies
) -
Basic quoted keys (
"basic string key"
and"nom"
) -
Literal quoted keys (
'literal key'
)
For details see toml spec.
To parse a key use FromStr
trait implementation: "string".parse::<Key>()
.
Implementations
While creating the Key
, add Decor
to it
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.