pub struct NullGraphAccessor;Expand description
A null implementation of GraphAccessor that returns no results.
Used when no graph storage is configured.
Trait Implementations§
Source§impl Clone for NullGraphAccessor
impl Clone for NullGraphAccessor
Source§fn clone(&self) -> NullGraphAccessor
fn clone(&self) -> NullGraphAccessor
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 NullGraphAccessor
impl Debug for NullGraphAccessor
Source§impl Default for NullGraphAccessor
impl Default for NullGraphAccessor
Source§fn default() -> NullGraphAccessor
fn default() -> NullGraphAccessor
Returns the “default value” for a type. Read more
Source§impl GraphAccessor for NullGraphAccessor
impl GraphAccessor for NullGraphAccessor
Source§fn neighbors(
&self,
_node: EntityId,
_direction: Direction,
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors( &self, _node: EntityId, _direction: Direction, ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors of a node in the specified direction. Read more
Source§fn neighbors_by_type(
&self,
_node: EntityId,
_direction: Direction,
_edge_type: &EdgeType,
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors_by_type( &self, _node: EntityId, _direction: Direction, _edge_type: &EdgeType, ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors filtered by edge type.
Source§fn neighbors_by_types(
&self,
_node: EntityId,
_direction: Direction,
_edge_types: &[EdgeType],
) -> GraphAccessResult<Vec<NeighborResult>>
fn neighbors_by_types( &self, _node: EntityId, _direction: Direction, _edge_types: &[EdgeType], ) -> GraphAccessResult<Vec<NeighborResult>>
Get neighbors filtered by multiple edge types.
Source§fn expand_all(
&self,
_node: EntityId,
_direction: Direction,
_min_depth: usize,
_max_depth: Option<usize>,
_edge_types: Option<&[EdgeType]>,
) -> GraphAccessResult<Vec<TraversalResult>>
fn expand_all( &self, _node: EntityId, _direction: Direction, _min_depth: usize, _max_depth: Option<usize>, _edge_types: Option<&[EdgeType]>, ) -> GraphAccessResult<Vec<TraversalResult>>
Perform multi-hop expansion from a node. Read more
Source§fn find_paths(
&self,
_start: EntityId,
_config: &PathFindConfig,
) -> GraphAccessResult<Vec<PathMatchResult>>
fn find_paths( &self, _start: EntityId, _config: &PathFindConfig, ) -> GraphAccessResult<Vec<PathMatchResult>>
Find paths matching a pattern from a starting node. Read more
impl Copy for NullGraphAccessor
Auto Trait Implementations§
impl Freeze for NullGraphAccessor
impl RefUnwindSafe for NullGraphAccessor
impl Send for NullGraphAccessor
impl Sync for NullGraphAccessor
impl Unpin for NullGraphAccessor
impl UnwindSafe for NullGraphAccessor
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