pub struct ParsedDocument<L = String, V = MemValue> {
pub patterns: Vec<Pattern<L, V>>,
pub graphs: Vec<MemGraph>,
}Expand description
Result of parsing a document with patterns, graphs, and compose directives.
Generic over label and value types with defaults for backward compatibility.
Use ParsedDocument (no params) for the default Pattern<String, MemValue>.
Fields§
§patterns: Vec<Pattern<L, V>>All compiled patterns (both directly declared and composed).
graphs: Vec<MemGraph>Parsed graphs (always MemGraph — graphs are test-only).
Trait Implementations§
Auto Trait Implementations§
impl<L, V> Freeze for ParsedDocument<L, V>
impl<L, V> RefUnwindSafe for ParsedDocument<L, V>where
L: RefUnwindSafe,
V: RefUnwindSafe,
impl<L, V> Send for ParsedDocument<L, V>
impl<L, V> Sync for ParsedDocument<L, V>
impl<L, V> Unpin for ParsedDocument<L, V>
impl<L, V> UnsafeUnpin for ParsedDocument<L, V>
impl<L, V> UnwindSafe for ParsedDocument<L, V>where
L: UnwindSafe,
V: UnwindSafe,
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