Lines Matching refs:Vec
404 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { struct
413 impl<T> Vec<T> { argument
429 Vec { buf: RawVec::NEW, len: 0 } in new()
594 impl<T, A: Allocator> Vec<T, A> { implementation
612 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in()
661 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
708 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in()
784 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
1596 v: &'a mut Vec<T, A>, in retain_mut()
1730 vec: &'a mut Vec<T, A>, in dedup_by()
2087 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off()
2092 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone()); in split_off()
2307 impl<T: Clone, A: Allocator> Vec<T, A> { impls
2406 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> { impls
2429 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened()
2447 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
2477 impl<T, A: Allocator> Vec<T, A> { impls
2509 impl<T: PartialEq, A: Allocator> Vec<T, A> { implementation
2538 pub fn from_elem<T: Clone>(elem: T, n: usize) -> Vec<T> { in from_elem()
2545 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in()
2557 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2576 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> { implementation
2609 impl<T, A: Allocator> ops::Deref for Vec<T, A> { implementation
2618 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> { implementation
2630 impl<T: Clone, A: Allocator> SpecCloneFrom for Vec<T, A> { implementation
2646 impl<T: Copy, A: Allocator> SpecCloneFrom for Vec<T, A> { implementation
2655 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> { implementation
2690 impl<T: Hash, A: Allocator> Hash for Vec<T, A> { implementation
2702 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> { implementation
2716 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> { implementation
2725 impl<T> FromIterator<T> for Vec<T> { implementation
2727 fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Vec<T> { in from_iter()
2733 impl<T, A: Allocator> IntoIterator for Vec<T, A> { implementation
2775 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> { implementation
2785 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> { implementation
2796 impl<T, A: Allocator> Extend<T> for Vec<T, A> { implementation
2813 impl<T, A: Allocator> Vec<T, A> { implementation
2953 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> { implementation
2971 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> { implementation
2979 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {} implementation
2983 impl<T: Ord, A: Allocator> Ord for Vec<T, A> { implementation
2991 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> { implementation
3005 impl<T> const Default for Vec<T> { implementation
3007 fn default() -> Vec<T> { in default()
3008 Vec::new() in default()
3013 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> { implementation
3020 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> { implementation
3021 fn as_ref(&self) -> &Vec<T, A> { in as_ref()
3027 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> { implementation
3028 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut()
3034 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> { implementation
3041 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> { implementation
3049 impl<T: Clone> From<&[T]> for Vec<T> { implementation
3058 fn from(s: &[T]) -> Vec<T> { in from()
3062 fn from(s: &[T]) -> Vec<T> { in from()
3069 impl<T: Clone> From<&mut [T]> for Vec<T> { implementation
3078 fn from(s: &mut [T]) -> Vec<T> { in from()
3082 fn from(s: &mut [T]) -> Vec<T> { in from()
3089 impl<T, const N: usize> From<[T; N]> for Vec<T> { implementation
3098 fn from(s: [T; N]) -> Vec<T> { in from()
3103 fn from(s: [T; N]) -> Vec<T> { in from()
3110 impl<'a, T> From<Cow<'a, [T]>> for Vec<T> implementation
3112 [T]: ToOwned<Owned = Vec<T>>,
3128 fn from(s: Cow<'a, [T]>) -> Vec<T> { in from()
3136 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> { implementation
3155 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3166 fn from(v: Vec<T, A>) -> Self { in from()
3173 impl From<&str> for Vec<u8> { implementation
3181 fn from(s: &str) -> Vec<u8> { in from()
3187 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {
3188 type Error = Vec<T, A>;
3216 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from()