pub struct GraphState { /* private fields */ }Expand description
Validated, privately held graph state. Construction performs no I/O.
Implementations§
Source§impl GraphState
impl GraphState
Sourcepub fn from_ndjson(
entities: &str,
edges: &str,
notes: &str,
) -> Result<Self, DiffInputError>
pub fn from_ndjson( entities: &str, edges: &str, notes: &str, ) -> Result<Self, DiffInputError>
Parse already-loaded NDJSON. Empty/blank lines are ignored; errors carry one-based physical line numbers. Duplicate IDs within a substrate refuse.
Entity/note IDs use id; edge IDs use edge_id. All other fields are
retained, including unknown kinds/properties and explicitly null values.
Trait Implementations§
Source§impl Clone for GraphState
impl Clone for GraphState
Source§impl Debug for GraphState
impl Debug for GraphState
Source§impl Default for GraphState
impl Default for GraphState
impl Eq for GraphState
Source§impl PartialEq for GraphState
impl PartialEq for GraphState
impl StructuralPartialEq for GraphState
Auto Trait Implementations§
impl Freeze for GraphState
impl RefUnwindSafe for GraphState
impl Send for GraphState
impl Sync for GraphState
impl Unpin for GraphState
impl UnsafeUnpin for GraphState
impl UnwindSafe for GraphState
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