pub struct InMemoryGraphStore { /* private fields */ }Implementations§
Source§impl InMemoryGraphStore
impl InMemoryGraphStore
pub fn from_document(document: Document) -> InMemoryGraphStore
pub fn from_portable( portable: &PortableDocument, ) -> Result<InMemoryGraphStore, GraphStoreError>
pub fn from_json(payload: &str) -> Result<InMemoryGraphStore, GraphStoreError>
pub fn document(&self) -> &Document
Trait Implementations§
Source§impl Clone for InMemoryGraphStore
impl Clone for InMemoryGraphStore
Source§fn clone(&self) -> InMemoryGraphStore
fn clone(&self) -> InMemoryGraphStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryGraphStore
impl Debug for InMemoryGraphStore
Source§impl GraphStore for InMemoryGraphStore
impl GraphStore for InMemoryGraphStore
fn stats(&self) -> GraphStoreStats
fn observability(&self) -> GraphStoreObservability
fn root_id(&self) -> BlockId
fn node_ids(&self) -> Vec<BlockId>
fn node(&self, block_id: BlockId) -> Option<GraphNodeRecord>
fn children(&self, block_id: BlockId) -> Vec<BlockId>
fn parent(&self, block_id: BlockId) -> Option<BlockId>
fn outgoing_edges(&self, block_id: BlockId) -> Vec<GraphEdgeSummary>
fn incoming_edges(&self, block_id: BlockId) -> Vec<GraphEdgeSummary>
fn resolve_selector(&self, selector: &str) -> Option<BlockId>
fn to_portable_document(&self) -> Result<PortableDocument, GraphStoreError>
Auto Trait Implementations§
impl Freeze for InMemoryGraphStore
impl RefUnwindSafe for InMemoryGraphStore
impl Send for InMemoryGraphStore
impl Sync for InMemoryGraphStore
impl Unpin for InMemoryGraphStore
impl UnsafeUnpin for InMemoryGraphStore
impl UnwindSafe for InMemoryGraphStore
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