[−][src]Struct lark_collections::IndexVec
A vector indexable via values of type I
.
Methods
impl<I, T> IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> IndexVec<I, T> where
I: U32Index,
pub fn new() -> Self | [src] |
pub fn with_capacity(cap: usize) -> Self | [src] |
pub fn from_elem<S>(elem: T, universe: &IndexVec<I, S>) -> Self where | [src] |
pub fn from_elem_n(elem: T, n: usize) -> Self where | [src] |
pub fn len(&self) -> usize | [src] |
pub fn is_empty(&self) -> bool | [src] |
pub fn into_iter(self) -> IntoIter<T> | [src] |
pub fn into_iter_enumerated( | [src] |
pub fn iter(&self) -> Iter<T> | [src] |
pub fn iter_mut(&mut self) -> IterMut<T> | [src] |
pub fn iter_enumerated( | [src] |
pub fn iter_enumerated_mut( | [src] |
pub fn indices( | [src] |
pub fn last_idx(&self) -> Option<I> | [src] |
pub fn next_idx(&self) -> I | [src] |
pub fn shrink_to_fit(&mut self) | [src] |
pub fn swap(&mut self, l: I, r: I) | [src] |
pub fn truncate(&mut self, s: usize) | [src] |
pub fn get(&self, i: I) -> Option<&T> | [src] |
pub fn get_mut(&mut self, i: I) -> Option<&mut T> | [src] |
pub fn last(&self) -> Option<&T> | [src] |
pub fn last_mut(&mut self) -> Option<&mut T> | [src] |
pub fn reserve(&mut self, s: usize) | [src] |
pub fn resize(&mut self, s: usize, v: T) where | [src] |
pub fn binary_search(&self, v: &T) -> Result<I, I> where | [src] |
pub fn push(&mut self, d: T) -> I | [src] |
pub fn push_with_idx<F>(&mut self, f: F) -> I where | [src] |
Trait Implementations
impl<I, T> From<Vec<T>> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> From<Vec<T>> for IndexVec<I, T> where
I: U32Index,
impl<I, T> IntoIterator for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> IntoIterator for IndexVec<I, T> where
I: U32Index,
type Item = T
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> IntoIter<T> | [src] |
impl<'a, I, T> IntoIterator for &'a IndexVec<I, T> where
I: U32Index,
[src]
impl<'a, I, T> IntoIterator for &'a IndexVec<I, T> where
I: U32Index,
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a, I, T> IntoIterator for &'a mut IndexVec<I, T> where
I: U32Index,
[src]
impl<'a, I, T> IntoIterator for &'a mut IndexVec<I, T> where
I: U32Index,
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<I: Eq, T: Eq> Eq for IndexVec<I, T> where
I: U32Index,
[src]
impl<I: Eq, T: Eq> Eq for IndexVec<I, T> where
I: U32Index,
impl<I, T> Extend<T> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> Extend<T> for IndexVec<I, T> where
I: U32Index,
fn extend<IT>(&mut self, iter: IT) where | [src] |
impl<I, T> Default for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> Default for IndexVec<I, T> where
I: U32Index,
impl<I: PartialEq, T: PartialEq> PartialEq<IndexVec<I, T>> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I: PartialEq, T: PartialEq> PartialEq<IndexVec<I, T>> for IndexVec<I, T> where
I: U32Index,
impl<I: Clone, T: Clone> Clone for IndexVec<I, T> where
I: U32Index,
[src]
impl<I: Clone, T: Clone> Clone for IndexVec<I, T> where
I: U32Index,
fn clone(&self) -> IndexVec<I, T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<I, T> Debug for IndexVec<I, T> where
I: U32Index,
T: Debug,
[src]
impl<I, T> Debug for IndexVec<I, T> where
I: U32Index,
T: Debug,
impl<I: Hash, T: Hash> Hash for IndexVec<I, T> where
I: U32Index,
[src]
impl<I: Hash, T: Hash> Hash for IndexVec<I, T> where
I: U32Index,
fn hash<__HIT: Hasher>(&self, state: &mut __HIT) | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl<I, T> Index<I> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> Index<I> for IndexVec<I, T> where
I: U32Index,
impl<I, T> IndexMut<I> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> IndexMut<I> for IndexVec<I, T> where
I: U32Index,
impl<I, T> FromIterator<T> for IndexVec<I, T> where
I: U32Index,
[src]
impl<I, T> FromIterator<T> for IndexVec<I, T> where
I: U32Index,
fn from_iter<IT>(iter: IT) -> Self where | [src] |
impl<I, T> DebugWith for IndexVec<I, T> where
I: U32Index,
T: DebugWith,
[src]
impl<I, T> DebugWith for IndexVec<I, T> where
I: U32Index,
T: DebugWith,
fn fmt_with<Cx: ?Sized>(&self, cx: &Cx, fmt: &mut Formatter) -> Result | [src] |
fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where | [src] |
fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where | [src] |
Auto Trait Implementations
impl<I, T> Send for IndexVec<I, T> where
I: Send,
T: Send,
impl<I, T> Send for IndexVec<I, T> where
I: Send,
T: Send,
impl<I, T> Sync for IndexVec<I, T> where
I: Sync,
T: Sync,
impl<I, T> Sync for IndexVec<I, T> where
I: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool | [src] |
impl<Cx, T> FmtWithSpecialized for T where
Cx: ?Sized,
T: Debug + ?Sized,
[src]
impl<Cx, T> FmtWithSpecialized for T where
Cx: ?Sized,
T: Debug + ?Sized,