[−][src]Struct rs_collections::vec::Vec
Implementations
impl<T> Vec<T>
[src]
pub fn with_capacity(c: usize) -> Self
[src]
pub fn new() -> Self
[src]
pub fn as_slice(&self) -> &[T]
[src]
pub fn as_mut_slice(&mut self) -> &mut [T]
[src]
pub fn len(&self) -> usize
[src]
pub fn push(&mut self, t: T)
[src]
pub fn pop(&mut self) -> Option<T>
[src]
pub fn get_unchecked(&self, idx: usize) -> &T
[src]
pub fn get_unchecked_mut(&mut self, idx: usize) -> &mut T
[src]
pub fn to_iter<'a>(&self) -> Iter<'a, T>
[src]
pub fn last(&self) -> Option<&T>
[src]
pub fn capacity(&self) -> usize
[src]
pub fn iter(&self) -> Iter<T>
[src]
pub fn iter_mut(&mut self) -> IterMut<T>
[src]
pub fn from_raw_parts(ptr: *mut T, len: usize, cap: usize) -> Self
[src]
Trait Implementations
impl<T: Clone> Clone for Vec<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Drop for Vec<T>
[src]
impl<A> FromIterator<A> for Vec<A>
[src]
fn from_iter<I: IntoIterator<Item = A>>(iter: I) -> Self
[src]
impl<T, I: SliceIndex<[T]>> Index<I> for Vec<T>
[src]
type Output = I::Output
The returned type after indexing.
fn index(&self, index: I) -> &Self::Output
[src]
impl<T, I: SliceIndex<[T]>> IndexMut<I> for Vec<T>
[src]
impl<'a, T> IntoIterator for &'a Vec<T>
[src]
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) -> Iter<'a, T>
[src]
impl<'a, T> IntoIterator for &'a mut Vec<T>
[src]
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) -> IterMut<'a, T>
[src]
impl<T: Copy> VecAppend<T> for Vec<T>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,