pub struct PairsMap<Key, Val> { /* private fields */ }

Implementations§

source§

impl<Key, Val> PairsMap<Key, Val>where Key: Clone + Eq + Hash + Ord,

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn keys(&self) -> &[Key]

source

pub fn values(&self) -> &[Val]

Trait Implementations§

source§

impl<Key, Val> FromIterator<(Key, Key, Val)> for PairsMap<Key, Val>where Key: Clone + Eq + Hash + Ord, Val: Clone + Default,

source§

fn from_iter<Iter: IntoIterator<Item = (Key, Key, Val)>>(iter: Iter) -> Self

Creates a value from an iterator. Read more
source§

impl<Key, Val> Index<(usize, usize)> for PairsMap<Key, Val>where Key: Clone + Eq + Hash + Ord, Val: Clone + Default,

§

type Output = Val

The returned type after indexing.
source§

fn index(&self, (idx_0, idx_1): (usize, usize)) -> &Val

Performs the indexing (container[index]) operation. Read more

Auto Trait Implementations§

§

impl<Key, Val> RefUnwindSafe for PairsMap<Key, Val>where Key: RefUnwindSafe, Val: RefUnwindSafe,

§

impl<Key, Val> Send for PairsMap<Key, Val>where Key: Send, Val: Send,

§

impl<Key, Val> Sync for PairsMap<Key, Val>where Key: Sync, Val: Sync,

§

impl<Key, Val> Unpin for PairsMap<Key, Val>where Key: Unpin, Val: Unpin,

§

impl<Key, Val> UnwindSafe for PairsMap<Key, Val>where Key: UnwindSafe, Val: 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<From, To> QuickInto<To> for Fromwhere To: QuickFrom<From>,

source§

fn quick_into(self) -> To

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.