Lines Matching refs:Vec
399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { struct
408 impl<T> Vec<T> { implementation
424 Vec { buf: RawVec::NEW, len: 0 } in new()
650 impl<T, A: Allocator> Vec<T, A> { implementation
668 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in()
730 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
790 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in()
901 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
1716 v: &'a mut Vec<T, A>, in retain_mut()
1850 vec: &'a mut Vec<T, A>, in dedup_by()
2261 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2266 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()
2480 impl<T: Clone, A: Allocator> Vec<T, A> { implementation
2642 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> { implementation
2665 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened()
2683 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
2703 impl<T, A: Allocator> Vec<T, A> { implementation
2765 impl<T: PartialEq, A: Allocator> Vec<T, A> { impl
2794 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2801 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in()
2813 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2832 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2865 impl<T, A: Allocator> ops::Deref for Vec<T, A> { implementation
2875 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> { implementation
2884 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> { implementation
2918 impl<T: Hash, A: Allocator> Hash for Vec<T, A> { implementation
2930 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> { implementation
2944 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> { implementation
2953 impl<T> FromIterator<T> for Vec<T> { implementation
2955 fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Vec<T> { in from_iter()
2961 impl<T, A: Allocator> IntoIterator for Vec<T, A> { implementation
3006 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> { implementation
3016 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> { implementation
3027 impl<T, A: Allocator> Extend<T> for Vec<T, A> { implementation
3044 impl<T, A: Allocator> Vec<T, A> { implementation
3275 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> { implementation
3293 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> { implementation
3301 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {} implementation
3305 impl<T: Ord, A: Allocator> Ord for Vec<T, A> { implementation
3313 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> { implementation
3326 impl<T> Default for Vec<T> { implementation
3330 fn default() -> Vec<T> { in default()
3331 Vec::new() in default()
3336 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> { implementation
3343 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> { implementation
3344 fn as_ref(&self) -> &Vec<T, A> { in as_ref()
3350 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> { implementation
3351 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut()
3357 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> { implementation
3364 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> { implementation
3372 impl<T: Clone> From<&[T]> for Vec<T> { implementation
3381 fn from(s: &[T]) -> Vec<T> { in from()
3385 fn from(s: &[T]) -> Vec<T> { in from()
3392 impl<T: Clone> From<&mut [T]> for Vec<T> { implementation
3401 fn from(s: &mut [T]) -> Vec<T> { in from()
3405 fn from(s: &mut [T]) -> Vec<T> { in from()
3412 impl<T, const N: usize> From<[T; N]> for Vec<T> { implementation
3421 fn from(s: [T; N]) -> Vec<T> { in from()
3426 fn from(s: [T; N]) -> Vec<T> { in from()
3433 impl<'a, T> From<Cow<'a, [T]>> for Vec<T> implementation
3435 [T]: ToOwned<Owned = Vec<T>>,
3451 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()
3459 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> { implementation
3478 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3497 fn from(v: Vec<T, A>) -> Self { in from()
3504 impl From<&str> for Vec<u8> { implementation
3512 fn from(s: &str) -> Vec<u8> { in from()
3518 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {
3519 type Error = Vec<T, A>;
3547 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from()