pub struct NodeVecMap<'a, G, V> { /* private fields */ }Implementations§
Source§impl<'a, G, V> NodeVecMap<'a, G, V>where
G: IndexGraph,
V: Clone,
impl<'a, G, V> NodeVecMap<'a, G, V>where
G: IndexGraph,
V: Clone,
Trait Implementations§
Source§impl<'a, G, V> ItemMap<<G as GraphType>::Node<'a>, V> for NodeVecMap<'a, G, V>where
G: IndexGraph,
V: Clone,
impl<'a, G, V> ItemMap<<G as GraphType>::Node<'a>, V> for NodeVecMap<'a, G, V>where
G: IndexGraph,
V: Clone,
Source§fn insert_or_replace(&mut self, key: G::Node<'a>, value: V) -> bool
fn insert_or_replace(&mut self, key: G::Node<'a>, value: V) -> bool
Add one item to the map. Read more
Source§fn get(&self, key: G::Node<'a>) -> Option<&V>
fn get(&self, key: G::Node<'a>) -> Option<&V>
Return a read-only reference to the element with the given key.
Auto Trait Implementations§
impl<'a, G, V> Freeze for NodeVecMap<'a, G, V>
impl<'a, G, V> RefUnwindSafe for NodeVecMap<'a, G, V>where
G: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, G, V> Send for NodeVecMap<'a, G, V>
impl<'a, G, V> Sync for NodeVecMap<'a, G, V>
impl<'a, G, V> Unpin for NodeVecMap<'a, G, V>where
V: Unpin,
impl<'a, G, V> UnwindSafe for NodeVecMap<'a, G, V>where
G: RefUnwindSafe,
V: 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