pub struct EdgeTypeIndex { /* private fields */ }Expand description
Edge type index (maps edge types to edge IDs)
Implementations§
Source§impl EdgeTypeIndex
impl EdgeTypeIndex
Sourcepub fn remove_edge(&self, edge: &Edge)
pub fn remove_edge(&self, edge: &Edge)
Remove an edge from the index
Sourcepub fn get_edges_by_type(&self, edge_type: &str) -> Vec<EdgeId> ⓘ
pub fn get_edges_by_type(&self, edge_type: &str) -> Vec<EdgeId> ⓘ
Get all edges of a specific type
Sourcepub fn all_edge_types(&self) -> Vec<String>
pub fn all_edge_types(&self) -> Vec<String>
Get all edge types
Sourcepub fn count_by_type(&self, edge_type: &str) -> usize
pub fn count_by_type(&self, edge_type: &str) -> usize
Count edges of a specific type
Trait Implementations§
Source§impl Clone for EdgeTypeIndex
impl Clone for EdgeTypeIndex
Source§fn clone(&self) -> EdgeTypeIndex
fn clone(&self) -> EdgeTypeIndex
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 EdgeTypeIndex
impl Debug for EdgeTypeIndex
Auto Trait Implementations§
impl Freeze for EdgeTypeIndex
impl !RefUnwindSafe for EdgeTypeIndex
impl Send for EdgeTypeIndex
impl Sync for EdgeTypeIndex
impl Unpin for EdgeTypeIndex
impl !UnwindSafe for EdgeTypeIndex
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request