Lines Matching refs:A
399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
400 buf: RawVec<T, A>,
650 impl<T, A: Allocator> Vec<T, A> {
667 pub const fn new_in(alloc: A) -> Self { in new_in()
729 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
789 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
900 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
981 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument
1217 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice() argument
1396 pub fn allocator(&self) -> &A { in allocator() argument
1715 struct BackshiftOnDrop<'a, T, A: Allocator> { in retain_mut()
1716 v: &'a mut Vec<T, A>, in retain_mut()
1722 impl<T, A: Allocator> Drop for BackshiftOnDrop<'_, T, A> { in retain_mut()
1743 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut()
1746 g: &mut BackshiftOnDrop<'_, T, A>, in retain_mut() argument
1779 process_loop::<F, T, A, false>(original_len, &mut f, &mut g); in retain_mut()
1782 process_loop::<F, T, A, true>(original_len, &mut f, &mut g); in retain_mut()
1841 struct FillGapOnDrop<'a, T, A: core::alloc::Allocator> { in dedup_by()
1850 vec: &'a mut Vec<T, A>, in dedup_by()
1853 impl<'a, T, A: core::alloc::Allocator> Drop for FillGapOnDrop<'a, T, A> { in dedup_by()
2129 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> in drain()
2245 A: Clone, in split_off()
2345 A: 'a, in leak()
2480 impl<T: Clone, A: Allocator> Vec<T, A> {
2642 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
2665 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened() argument
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> {
2765 impl<T: PartialEq, A: Allocator> Vec<T, A> {
2801 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2813 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2832 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2865 impl<T, A: Allocator> ops::Deref for Vec<T, A> {
2875 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> {
2884 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
2918 impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
2930 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
2944 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
2961 impl<T, A: Allocator> IntoIterator for Vec<T, A> {
2963 type IntoIter = IntoIter<T, A>;
3006 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> {
3016 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> {
3027 impl<T, A: Allocator> Extend<T> for Vec<T, A> {
3044 impl<T, A: Allocator> Vec<T, A> {
3199 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A> in splice()
3252 pub fn drain_filter<F>(&mut self, filter: F) -> DrainFilter<'_, T, F, A> in drain_filter()
3275 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> {
3293 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> {
3301 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {}
3305 impl<T: Ord, A: Allocator> Ord for Vec<T, A> {
3313 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> {
3336 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
3343 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> {
3344 fn as_ref(&self) -> &Vec<T, A> { in as_ref() argument
3350 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> {
3351 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut() argument
3357 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> {
3364 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> {
3459 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> {
3469 fn from(s: Box<[T], A>) -> Self { in from()
3478 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3497 fn from(v: Vec<T, A>) -> Self { 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() argument