#[repr(u8)]pub enum NodeKind {
Show 16 variants
String = 0,
Number = 1,
Boolean = 2,
Null = 3,
Scalar = 4,
Object = 16,
Array = 17,
Key = 18,
Value = 19,
Comment = 32,
Reference = 33,
Definition = 34,
Header = 35,
Row = 36,
Section = 37,
FormatSpecific(FormatSpecificKind),
}Expand description
Universal node kinds for filtering (cross-format)
These kinds form a semantic hierarchy that works across all formats,
enabling queries like $..::string or $..::reference.
Variants§
String = 0
String value
Number = 1
Numeric value (integer or float)
Boolean = 2
Boolean value (true/false)
Null = 3
Null value
Scalar = 4
Any scalar (string, number, boolean, null)
Object = 16
Object/mapping container
Array = 17
Array/sequence container
Key = 18
Key name (in object)
Value = 19
Value (in key-value pair)
Comment = 32
Comment (any format)
Reference = 33
Reference (YAML alias, ISON ref)
Definition = 34
Definition (YAML anchor, ISON table)
Header = 35
Header row/declaration
Row = 36
Data row
Section = 37
Section/block boundary
FormatSpecific(FormatSpecificKind)
Format-specific node kind
Implementations§
Source§impl NodeKind
impl NodeKind
Sourcepub const fn is_value_type(self) -> bool
pub const fn is_value_type(self) -> bool
Check if this kind is a value type
Sourcepub const fn is_container(self) -> bool
pub const fn is_container(self) -> bool
Check if this kind is a container type
Sourcepub const fn is_semantic_category(self) -> bool
pub const fn is_semantic_category(self) -> bool
Check if this kind is a semantic category
Sourcepub const fn is_format_specific(self) -> bool
pub const fn is_format_specific(self) -> bool
Check if this kind is format-specific
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnwindSafe for NodeKind
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