pub struct LabelIndex { /* private fields */ }Implementations§
Source§impl LabelIndex
impl LabelIndex
pub fn build<G: GraphStore>(store: &G, graph: &str) -> GraphStoreResult<Self>
pub fn edges_by_label(&self, label: &str) -> &[EdgeId] ⓘ
pub fn vertices_by_label(&self, label: &str) -> Option<&BTreeSet<VertexId>>
pub fn labels(&self) -> Vec<String>
pub fn label_count(&self, label: &str) -> usize
Trait Implementations§
Source§impl Clone for LabelIndex
impl Clone for LabelIndex
Source§impl Debug for LabelIndex
impl Debug for LabelIndex
Auto Trait Implementations§
impl Freeze for LabelIndex
impl RefUnwindSafe for LabelIndex
impl Send for LabelIndex
impl Sync for LabelIndex
impl Unpin for LabelIndex
impl UnsafeUnpin for LabelIndex
impl UnwindSafe for LabelIndex
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