pub enum YamlKind {
Mapping,
Sequence,
Scalar,
Alias,
Document,
Tagged(Cow<'static, str>),
}Expand description
The kind of YAML value.
Variants§
Mapping
A mapping (object/dictionary)
Sequence
A sequence (array/list)
Scalar
A scalar value (string, number, boolean, null)
Alias
An alias reference (e.g. *anchor_name)
Document
A document (top-level container)
Tagged(Cow<'static, str>)
A tagged value (e.g. !!set, !!omap, !!pairs).
Known built-in tags use a 'static string; custom tags carry an owned string.
Trait Implementations§
impl Eq for YamlKind
impl StructuralPartialEq for YamlKind
Auto Trait Implementations§
impl Freeze for YamlKind
impl RefUnwindSafe for YamlKind
impl Send for YamlKind
impl Sync for YamlKind
impl Unpin for YamlKind
impl UnsafeUnpin for YamlKind
impl UnwindSafe for YamlKind
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