pub struct InMemoryEdgeStore<V: Clone> { /* private fields */ }Expand description
A HashMap-backed EdgeStore for any Clone edge type.
Implementations§
Trait Implementations§
Source§impl<V: Default + Clone> Default for InMemoryEdgeStore<V>
impl<V: Default + Clone> Default for InMemoryEdgeStore<V>
Source§fn default() -> InMemoryEdgeStore<V>
fn default() -> InMemoryEdgeStore<V>
Returns the “default value” for a type. Read more
Source§impl<V: Clone + HasEdgeId> EdgeStore for InMemoryEdgeStore<V>
impl<V: Clone + HasEdgeId> EdgeStore for InMemoryEdgeStore<V>
Source§fn delete_edge(&mut self, id: EdgeId) -> Result<(), StoreError>
fn delete_edge(&mut self, id: EdgeId) -> Result<(), StoreError>
Delete an edge by ID. Returns
StoreError::NotFound if absent.Source§fn query_edges(&self, query: &Query) -> Result<QueryResult<&V>, StoreError>
fn query_edges(&self, query: &Query) -> Result<QueryResult<&V>, StoreError>
Return a paged, optionally-filtered collection of edges.
Auto Trait Implementations§
impl<V> Freeze for InMemoryEdgeStore<V>
impl<V> RefUnwindSafe for InMemoryEdgeStore<V>where
V: RefUnwindSafe,
impl<V> Send for InMemoryEdgeStore<V>where
V: Send,
impl<V> Sync for InMemoryEdgeStore<V>where
V: Sync,
impl<V> Unpin for InMemoryEdgeStore<V>where
V: Unpin,
impl<V> UnsafeUnpin for InMemoryEdgeStore<V>
impl<V> UnwindSafe for InMemoryEdgeStore<V>where
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