fluidattacks-blends-domain 0.35.0

Blends functional core: pure AST graph to syntax graph (no_std)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! AST edge: parent → child link with the shared AST marker and child index.

use crate::Ast;

/// A parent-to-child link in the AST graph.
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[non_exhaustive]
pub struct AstEdge {
    /// Marks this edge as part of the AST adjacency.
    pub kind: Ast,
    /// The child's position among its parent's grammar children.
    pub index: u32,
}