pub struct DenseMap<T>(pub Vec<Option<T>>);Expand description
A dense map of i16 -> T, stored as Vec<Option<T>> for quick indexing.
Tuple Fields§
§0: Vec<Option<T>>Trait Implementations§
Source§impl<'de, T: Deserialize<'de>> Deserialize<'de> for DenseMap<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for DenseMap<T>
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for DenseMap<T>
impl<T> StructuralPartialEq for DenseMap<T>
Auto Trait Implementations§
impl<T> Freeze for DenseMap<T>
impl<T> RefUnwindSafe for DenseMap<T>where
T: RefUnwindSafe,
impl<T> Send for DenseMap<T>where
T: Send,
impl<T> Sync for DenseMap<T>where
T: Sync,
impl<T> Unpin for DenseMap<T>where
T: Unpin,
impl<T> UnwindSafe for DenseMap<T>where
T: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.