pub struct GraphQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> GraphQuery<'a>
impl<'a> GraphQuery<'a>
pub fn new(graph: &'a SqliteGraph) -> Self
pub fn neighbors(&self, id: i64) -> Result<Vec<i64>, SqliteGraphError>
pub fn incoming(&self, id: i64) -> Result<Vec<i64>, SqliteGraphError>
pub fn outgoing(&self, id: i64) -> Result<Vec<i64>, SqliteGraphError>
pub fn edges_of_type( &self, id: i64, edge_type: &str, ) -> Result<Vec<i64>, SqliteGraphError>
pub fn has_path( &self, a: i64, b: i64, max_depth: u32, ) -> Result<bool, SqliteGraphError>
pub fn k_hop_outgoing( &self, start: i64, depth: u32, ) -> Result<Vec<i64>, SqliteGraphError>
pub fn k_hop_direction( &self, start: i64, depth: u32, direction: BackendDirection, ) -> Result<Vec<i64>, SqliteGraphError>
pub fn k_hop_filtered( &self, start: i64, depth: u32, direction: BackendDirection, allowed_edge_types: &[&str], ) -> Result<Vec<i64>, SqliteGraphError>
pub fn chain( &self, start: i64, chain: &[ChainStep], ) -> Result<Vec<i64>, SqliteGraphError>
pub fn pattern_matches( &self, start: i64, pattern_query: &PatternQuery, ) -> Result<Vec<PatternMatch>, SqliteGraphError>
Auto Trait Implementations§
impl<'a> Freeze for GraphQuery<'a>
impl<'a> !RefUnwindSafe for GraphQuery<'a>
impl<'a> !Send for GraphQuery<'a>
impl<'a> !Sync for GraphQuery<'a>
impl<'a> Unpin for GraphQuery<'a>
impl<'a> !UnwindSafe for GraphQuery<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more