pub enum SemanticKind {
Document,
Mapping {
style: CollectionStyle,
},
Sequence {
style: CollectionStyle,
},
Scalar {
style: YamlScalarStyle,
},
Alias,
}Expand description
Semantic interpretation attached to a lossless CST node.
Variants§
Document
YAML document.
Mapping
YAML mapping with its presentation style.
Fields
§
style: CollectionStyleBlock or flow spelling.
Sequence
YAML sequence with its presentation style.
Fields
§
style: CollectionStyleBlock or flow spelling.
Scalar
Scalar with presentation style.
Fields
§
style: YamlScalarStyleScalar spelling style.
Alias
Alias reference.
Trait Implementations§
Source§impl Clone for SemanticKind
impl Clone for SemanticKind
Source§fn clone(&self) -> SemanticKind
fn clone(&self) -> SemanticKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SemanticKind
Source§impl Debug for SemanticKind
impl Debug for SemanticKind
impl Eq for SemanticKind
Source§impl PartialEq for SemanticKind
impl PartialEq for SemanticKind
impl StructuralPartialEq for SemanticKind
Auto Trait Implementations§
impl Freeze for SemanticKind
impl RefUnwindSafe for SemanticKind
impl Send for SemanticKind
impl Sync for SemanticKind
impl Unpin for SemanticKind
impl UnsafeUnpin for SemanticKind
impl UnwindSafe for SemanticKind
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