pub struct NodeLabelIndex<Label, NI>(/* private fields */)
where
NI: Idx,
Label: Idx;Available on crate feature
dotgraph only.Implementations§
Source§impl<Label, NI> NodeLabelIndex<Label, NI>
impl<Label, NI> NodeLabelIndex<Label, NI>
pub fn from_stats<F>( node_count: NI, label_stats: &LabelStats<NI, Label>, label_func: F, ) -> Self
pub fn nodes(&self, label: Label) -> &[NI]
Trait Implementations§
Source§impl<Label, NI, F> From<(NI, &LabelStats<NI, Label>, F)> for NodeLabelIndex<Label, NI>
impl<Label, NI, F> From<(NI, &LabelStats<NI, Label>, F)> for NodeLabelIndex<Label, NI>
Source§fn from(
(node_count, label_stats, label_func): (NI, &LabelStats<NI, Label>, F),
) -> Self
fn from( (node_count, label_stats, label_func): (NI, &LabelStats<NI, Label>, F), ) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Label, NI> Freeze for NodeLabelIndex<Label, NI>
impl<Label, NI> RefUnwindSafe for NodeLabelIndex<Label, NI>where
Label: RefUnwindSafe,
NI: RefUnwindSafe,
impl<Label, NI> Send for NodeLabelIndex<Label, NI>
impl<Label, NI> Sync for NodeLabelIndex<Label, NI>
impl<Label, NI> Unpin for NodeLabelIndex<Label, NI>
impl<Label, NI> UnwindSafe for NodeLabelIndex<Label, NI>where
Label: UnwindSafe,
NI: UnwindSafe,
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