pub struct GraphMlBackend { /* private fields */ }Expand description
GraphML file backend.
Implementations§
Trait Implementations§
Source§impl GraphBackend for GraphMlBackend
impl GraphBackend for GraphMlBackend
Source§type Error = GraphMlError
type Error = GraphMlError
Error type returned by this backend.
Source§fn init(&mut self) -> Result<(), Self::Error>
fn init(&mut self) -> Result<(), Self::Error>
Initialize the backend (create tables/files, run migrations).
Source§fn write_nodes(&mut self, nodes: &[Node]) -> Result<(), Self::Error>
fn write_nodes(&mut self, nodes: &[Node]) -> Result<(), Self::Error>
Persist a batch of nodes.
Source§fn write_edges(&mut self, edges: &[Edge]) -> Result<(), Self::Error>
fn write_edges(&mut self, edges: &[Edge]) -> Result<(), Self::Error>
Persist a batch of edges.
Source§fn find_nodes_by_type(&self, kind: NodeType) -> Result<Vec<Node>, Self::Error>
fn find_nodes_by_type(&self, kind: NodeType) -> Result<Vec<Node>, Self::Error>
Find nodes by type.
Auto Trait Implementations§
impl Freeze for GraphMlBackend
impl RefUnwindSafe for GraphMlBackend
impl Send for GraphMlBackend
impl Sync for GraphMlBackend
impl Unpin for GraphMlBackend
impl UnsafeUnpin for GraphMlBackend
impl UnwindSafe for GraphMlBackend
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