pub struct NodeVecMap<'a, G, V> { /* private fields */ }

Implementations§

source§

impl<'a, G, V> NodeVecMap<'a, G, V>where G: IndexGraph, V: Clone,

source

pub fn new(g: &'a G) -> Self

Trait Implementations§

source§

impl<'a, G, V> ItemMap<<G as GraphType>::Node<'a>, V> for NodeVecMap<'a, G, V>where G: IndexGraph, V: Clone,

source§

fn is_empty(&self) -> bool

Return true if this map is empty.
source§

fn len(&self) -> usize

Return the number of items in this map.
source§

fn clear(&mut self)

Remove all items from the map.
source§

fn insert(&mut self, key: G::Node<'a>, value: V) -> bool

Add one item to the map. Read more
source§

fn insert_or_replace(&mut self, key: G::Node<'a>, value: V) -> bool

Add one item to the map. Read more
source§

fn remove(&mut self, key: G::Node<'a>) -> bool

Remove one item from the map. Read more
source§

fn get(&self, key: G::Node<'a>) -> Option<&V>

Return a read-only reference to the element with the given key.
source§

fn get_mut(&mut self, key: G::Node<'a>) -> Option<&mut V>

Return a mutable reference to the element with the given key.
source§

fn contains(&self, key: G::Node<'a>) -> bool

Return true iff item u is contained in this map.

Auto Trait Implementations§

§

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>where G: Sync, V: Send,

§

impl<'a, G, V> Sync for NodeVecMap<'a, G, V>where G: Sync, V: Sync,

§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.