IndexedVec

Struct IndexedVec 

Source
pub struct IndexedVec<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Clone> Clone for IndexedVec<T>

Source§

fn clone(&self) -> IndexedVec<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for IndexedVec<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Index<Range<usize>> for IndexedVec<T>

Source§

type Output = [T]

The returned type after indexing.
Source§

fn index(&self, index: Range<usize>) -> &Self::Output

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

impl<T> Index<RangeFrom<usize>> for IndexedVec<T>

Source§

type Output = [T]

The returned type after indexing.
Source§

fn index(&self, index: RangeFrom<usize>) -> &Self::Output

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

impl<T> Index<RangeFull> for IndexedVec<T>

Source§

type Output = [T]

The returned type after indexing.
Source§

fn index(&self, _index: RangeFull) -> &Self::Output

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

impl<T> Index<RangeTo<usize>> for IndexedVec<T>

Source§

type Output = [T]

The returned type after indexing.
Source§

fn index(&self, index: RangeTo<usize>) -> &Self::Output

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

impl<T> Index<usize> for IndexedVec<T>

Source§

type Output = T

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

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

impl<T> IndexMut<Range<usize>> for IndexedVec<T>

Source§

fn index_mut(&mut self, index: Range<usize>) -> &mut [T]

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

impl<T> IndexMut<RangeFrom<usize>> for IndexedVec<T>

Source§

fn index_mut(&mut self, index: RangeFrom<usize>) -> &mut [T]

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

impl<T> IndexMut<RangeFull> for IndexedVec<T>

Source§

fn index_mut(&mut self, _index: RangeFull) -> &mut [T]

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

impl<T> IndexMut<RangeTo<usize>> for IndexedVec<T>

Source§

fn index_mut(&mut self, index: RangeTo<usize>) -> &mut [T]

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

impl<T> IndexMut<usize> for IndexedVec<T>

Source§

fn index_mut(&mut self, index: usize) -> &mut T

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

impl<T> IndexedSet<T> for IndexedVec<T>

Source§

fn new(start: usize) -> Self

Source§

fn with_capacity(start: usize, capacity: usize) -> Self

Source§

fn from_vec(vec: Vec<T>, start: usize) -> Self

Source§

fn len(&self) -> usize

Source§

fn index_start(&self) -> usize

Source§

fn index_end(&self) -> usize

Source§

fn index_range(&self) -> Range<usize>

Source§

fn push(&mut self, elem: T)

Source§

fn get(&self, index: usize) -> Option<&T>

Source§

fn get_mut(&mut self, index: usize) -> Option<&mut T>

Source§

fn position_within(&self, range: Range<usize>, elem: &T) -> Option<usize>
where T: PartialEq,

Source§

impl<'a, T: 'a> IndexedSetIters<'a, T> for IndexedVec<T>

Source§

type Iter = Iter<'a, T>

Source§

type IntoIter = IntoIter<T>

Source§

type Range = Range<'a, T>

Source§

fn iter(&'a self) -> Iter<'a, T>

Source§

fn into_iter(self) -> IntoIter<T>

Source§

fn range(&'a self, range: Range<usize>) -> Range<'a, T>

Auto Trait Implementations§

§

impl<T> Freeze for IndexedVec<T>

§

impl<T> RefUnwindSafe for IndexedVec<T>
where T: RefUnwindSafe,

§

impl<T> Send for IndexedVec<T>
where T: Send,

§

impl<T> Sync for IndexedVec<T>
where T: Sync,

§

impl<T> Unpin for IndexedVec<T>
where T: Unpin,

§

impl<T> UnwindSafe for IndexedVec<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.