pub struct InMemoryGraphEngine { /* private fields */ }Implementations§
Source§impl InMemoryGraphEngine
impl InMemoryGraphEngine
pub fn new() -> Self
pub fn add_node(&mut self, node: GraphNode) -> Result<(), GraphError>
pub fn add_relationship( &mut self, rel: GraphRelationship, ) -> Result<(), GraphError>
pub fn execute( &self, query: &CypherQuery, ) -> Result<Vec<GraphResult>, GraphError>
pub fn query_count(&self) -> u64
pub fn node_count(&self) -> usize
pub fn relationship_count(&self) -> usize
pub fn execute_mut( &mut self, query: &CypherQuery, ) -> Result<Vec<GraphResult>, GraphError>
Trait Implementations§
Source§impl Debug for InMemoryGraphEngine
impl Debug for InMemoryGraphEngine
Auto Trait Implementations§
impl !Freeze for InMemoryGraphEngine
impl RefUnwindSafe for InMemoryGraphEngine
impl Send for InMemoryGraphEngine
impl Sync for InMemoryGraphEngine
impl Unpin for InMemoryGraphEngine
impl UnsafeUnpin for InMemoryGraphEngine
impl UnwindSafe for InMemoryGraphEngine
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