pub struct VecMap<const FIXED: bool, K, V, F> {
pub data: Vec<Option<(K, V)>>,
/* private fields */
}
Fields§
§data: Vec<Option<(K, V)>>
Trait Implementations§
Source§impl<const FIXED: bool, K, V, F> Container for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> Container for VecMap<FIXED, K, V, F>
type Key = K
type Value = V
type Entry<'a> = Entry<'a, K, V> where Self: 'a, Self::Key: 'a, Self::Value: 'a
type Iter<'a> = Map<FilterMap<Iter<'a, Option<(K, V)>>, fn(&Option<(K, V)>) -> Option<&(K, V)>>, fn(&(K, V)) -> (&K, &V)> where Self: 'a, Self::Key: 'a, Self::Value: 'a
type Drain<'a> = FilterMap<IterMut<'a, Option<(K, V)>>, fn(&mut Option<(K, V)>) -> Option<(K, V)>> where Self: 'a, Self::Key: 'a, Self::Value: 'a
fn get(&self, key: &Self::Key) -> Option<&Self::Value>
fn get_mut(&mut self, key: &Self::Key) -> Option<&mut Self::Value>
fn insert(&mut self, key: Self::Key, value: Self::Value) -> Option<Self::Value>
fn remove(&mut self, key: &Self::Key) -> Option<Self::Value>
fn entry(&mut self, key: Self::Key) -> Self::Entry<'_>
fn iter(&self) -> Self::Iter<'_>
fn drain(&mut self) -> Self::Drain<'_>
Source§impl<const FIXED: bool, K: Ord, V: Ord, F: Ord> Ord for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K: Ord, V: Ord, F: Ord> Ord for VecMap<FIXED, K, V, F>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const FIXED: bool, K: PartialEq, V: PartialEq, F: PartialEq> PartialEq for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K: PartialEq, V: PartialEq, F: PartialEq> PartialEq for VecMap<FIXED, K, V, F>
Source§impl<const FIXED: bool, K: PartialOrd, V: PartialOrd, F: PartialOrd> PartialOrd for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K: PartialOrd, V: PartialOrd, F: PartialOrd> PartialOrd for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K: Eq, V: Eq, F: Eq> Eq for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> StructuralPartialEq for VecMap<FIXED, K, V, F>
Auto Trait Implementations§
impl<const FIXED: bool, K, V, F> Freeze for VecMap<FIXED, K, V, F>where
F: Freeze,
impl<const FIXED: bool, K, V, F> RefUnwindSafe for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> Send for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> Sync for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> Unpin for VecMap<FIXED, K, V, F>
impl<const FIXED: bool, K, V, F> UnwindSafe for VecMap<FIXED, K, V, F>
Blanket Implementations§
Source§impl<T> AsTotalOrd for Twhere
T: PartialOrd,
impl<T> AsTotalOrd for Twhere
T: PartialOrd,
fn as_total_ord(&self) -> TotalOrd<&T>
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