pub enum OpaqueKind {
TemplateComment,
Assignment,
Break,
Continue,
InlineRegion,
ActionLineText,
ParseError,
}Expand description
Classification of source retained without deeper CST structure.
Variants§
TemplateComment
A {{/* … */}} template comment.
Assignment
A {{ $x := … }} / {{ $x = … }} assignment action.
Break
A {{ break }} atom.
Continue
A {{ continue }} atom.
InlineRegion
A control region that opened mid-line inside YAML content; the whole region is preserved as one raw span.
ActionLineText
Literal YAML text sharing a line with a standalone action.
ParseError
Unparsable template content (tree-sitter ERROR output).
Trait Implementations§
Source§impl Clone for OpaqueKind
impl Clone for OpaqueKind
Source§fn clone(&self) -> OpaqueKind
fn clone(&self) -> OpaqueKind
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 OpaqueKind
Source§impl Debug for OpaqueKind
impl Debug for OpaqueKind
impl Eq for OpaqueKind
Source§impl PartialEq for OpaqueKind
impl PartialEq for OpaqueKind
impl StructuralPartialEq for OpaqueKind
Auto Trait Implementations§
impl Freeze for OpaqueKind
impl RefUnwindSafe for OpaqueKind
impl Send for OpaqueKind
impl Sync for OpaqueKind
impl Unpin for OpaqueKind
impl UnsafeUnpin for OpaqueKind
impl UnwindSafe for OpaqueKind
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