Lines Matching refs:Vec

402 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {  struct
411 impl<T> Vec<T> { impl
427 Vec { buf: RawVec::NEW, len: 0 } in new()
550 impl<T, A: Allocator> Vec<T, A> { impl
568 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in()
617 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
693 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
1505 v: &'a mut Vec<T, A>, in retain_mut()
1639 vec: &'a mut Vec<T, A>, in dedup_by()
1996 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2001 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()
2216 impl<T: Clone, A: Allocator> Vec<T, A> { implementation
2315 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> { impl
2338 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened()
2356 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
2386 impl<T, A: Allocator> Vec<T, A> { impl
2418 impl<T: PartialEq, A: Allocator> Vec<T, A> { impl
2447 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2454 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in()
2466 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2485 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2518 impl<T, A: Allocator> ops::Deref for Vec<T, A> { implementation
2527 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> { implementation
2539 impl<T: Clone, A: Allocator> SpecCloneFrom for Vec<T, A> { implementation
2555 impl<T: Copy, A: Allocator> SpecCloneFrom for Vec<T, A> { implementation
2564 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> { implementation
2599 impl<T: Hash, A: Allocator> Hash for Vec<T, A> { implementation
2611 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> { implementation
2625 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> { implementation
2634 impl<T> FromIterator<T> for Vec<T> { implementation
2636 fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Vec<T> { in from_iter()
2642 impl<T, A: Allocator> IntoIterator for Vec<T, A> { implementation
2684 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> { implementation
2694 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> { implementation
2705 impl<T, A: Allocator> Extend<T> for Vec<T, A> { implementation
2722 impl<T, A: Allocator> Vec<T, A> { impl
2862 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> { implementation
2880 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> { implementation
2888 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {} implementation
2892 impl<T: Ord, A: Allocator> Ord for Vec<T, A> { implementation
2900 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> { implementation
2914 impl<T> const Default for Vec<T> { implementation
2916 fn default() -> Vec<T> { in default()
2917 Vec::new() in default()
2922 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> { implementation
2929 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> { implementation
2930 fn as_ref(&self) -> &Vec<T, A> { in as_ref()
2936 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> { implementation
2937 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut()
2943 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> { implementation
2950 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> { implementation
2958 impl<T: Clone> From<&[T]> for Vec<T> { implementation
2967 fn from(s: &[T]) -> Vec<T> { in from()
2971 fn from(s: &[T]) -> Vec<T> { in from()
2978 impl<T: Clone> From<&mut [T]> for Vec<T> { implementation
2987 fn from(s: &mut [T]) -> Vec<T> { in from()
2991 fn from(s: &mut [T]) -> Vec<T> { in from()
2998 impl<T, const N: usize> From<[T; N]> for Vec<T> { implementation
3007 fn from(s: [T; N]) -> Vec<T> { in from()
3012 fn from(s: [T; N]) -> Vec<T> { in from()
3018 impl<'a, T> From<Cow<'a, [T]>> for Vec<T> implementation
3020 [T]: ToOwned<Owned = Vec<T>>,
3036 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()
3044 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> { implementation
3063 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3074 fn from(v: Vec<T, A>) -> Self { in from()
3081 impl From<&str> for Vec<u8> { implementation
3089 fn from(s: &str) -> Vec<u8> { in from()
3095 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {
3096 type Error = Vec<T, A>;
3124 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from()