pub struct AstBuffer {
pub predicates: Vec<Predicate>,
pub arguments: Vec<Argument>,
pub sentences: Vec<Sentence>,
pub roots: Vec<u32>,
}Expand description
Flat AST buffer: parallel arrays indexed by u32 IDs — the
nibli-kr→nibli-semantics interchange and render’s input (see the module
doc; never crosses WASM). Hand-built buffers are validated at the compile
boundary by validate_ast_buffer.
Fields§
§predicates: Vec<Predicate>§arguments: Vec<Argument>§sentences: Vec<Sentence>§roots: Vec<u32>Root sentence indices — one top-level sentence per statement.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstBuffer
impl RefUnwindSafe for AstBuffer
impl Send for AstBuffer
impl Sync for AstBuffer
impl Unpin for AstBuffer
impl UnsafeUnpin for AstBuffer
impl UnwindSafe for AstBuffer
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