#[repr(u8)]pub enum FieldKind {
NodeId = 0,
Span = 1,
Bool = 2,
Flags = 3,
Enum = 4,
}Expand description
Runtime field-value shape used when reflecting over AST nodes.
This powers grammar-agnostic tooling that inspects nodes without generated Rust types.
Variants§
NodeId = 0
A child node identifier.
Span = 1
A source span (byte offset + length).
Bool = 2
A boolean flag.
Flags = 3
A compact bitfield of flags.
Enum = 4
A discriminant for an enum variant.
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Freeze for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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