pub struct StriddenLabels<Label: StridableLabel + ?Sized> { /* private fields */ }Implementations§
Source§impl<Label: StridableLabel + ?Sized> StriddenLabels<Label>
impl<Label: StridableLabel + ?Sized> StriddenLabels<Label>
Sourcepub fn iter(&self) -> impl Iterator<Item = Option<&Label>>
pub fn iter(&self) -> impl Iterator<Item = Option<&Label>>
Returns an iterator with the label of each node, if any
Sourcepub fn iter_labeled(&self) -> impl Iterator<Item = (NodeId, &Label)>
pub fn iter_labeled(&self) -> impl Iterator<Item = (NodeId, &Label)>
Returns an iterator with each labeled node
Sourcepub fn par_iter(&self) -> impl ParallelIterator<Item = Option<&Label>>
pub fn par_iter(&self) -> impl ParallelIterator<Item = Option<&Label>>
Returns a parallel iterator with the label of each node, if any
Sourcepub fn par_iter_labeled(&self) -> impl ParallelIterator<Item = (NodeId, &Label)>
pub fn par_iter_labeled(&self) -> impl ParallelIterator<Item = (NodeId, &Label)>
Returns a parallel iterator with each labeled node
Trait Implementations§
Source§impl<Label: StridableLabel + ?Sized> Labels for StriddenLabels<Label>
impl<Label: StridableLabel + ?Sized> Labels for StriddenLabels<Label>
type Label = Label
type Config = StriddenLabelsConfig
fn new(num_nodes: usize, _: Self::Config) -> Self
fn insert( &mut self, node: NodeId, label: <Self::Label as ToOwned>::Owned, ) -> Option<<Self::Label as ToOwned>::Owned>
fn get(&self, node: NodeId) -> Option<&Self::Label>
fn contains_key(&self, node: NodeId) -> bool
fn remove(&mut self, node: NodeId) -> Option<<Self::Label as ToOwned>::Owned>
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<Label> Freeze for StriddenLabels<Label>where
Label: ?Sized,
impl<Label> RefUnwindSafe for StriddenLabels<Label>
impl<Label> Send for StriddenLabels<Label>
impl<Label> Sync for StriddenLabels<Label>
impl<Label> Unpin for StriddenLabels<Label>where
Label: ?Sized,
impl<Label> UnsafeUnpin for StriddenLabels<Label>where
Label: ?Sized,
impl<Label> UnwindSafe for StriddenLabels<Label>
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.