Lines Matching refs:A

399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
400 buf: RawVec<T, A>,
648 impl<T, A: Allocator> Vec<T, A> {
665 pub const fn new_in(alloc: A) -> Self { in new_in()
727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
982 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument
1218 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice() argument
1397 pub fn allocator(&self) -> &A { in allocator() argument
1716 struct BackshiftOnDrop<'a, T, A: Allocator> { in retain_mut()
1717 v: &'a mut Vec<T, A>, in retain_mut()
1723 impl<T, A: Allocator> Drop for BackshiftOnDrop<'_, T, A> { in retain_mut()
1744 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut()
1747 g: &mut BackshiftOnDrop<'_, T, A>, in retain_mut() argument
1780 process_loop::<F, T, A, false>(original_len, &mut f, &mut g); in retain_mut()
1783 process_loop::<F, T, A, true>(original_len, &mut f, &mut g); in retain_mut()
1842 struct FillGapOnDrop<'a, T, A: core::alloc::Allocator> { in dedup_by()
1851 vec: &'a mut Vec<T, A>, in dedup_by()
1854 impl<'a, T, A: core::alloc::Allocator> Drop for FillGapOnDrop<'a, T, A> { in dedup_by()
2130 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> in drain()
2246 A: Clone, in split_off()
2346 A: 'a, in leak()
2481 impl<T: Clone, A: Allocator> Vec<T, A> {
2643 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
2666 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened() argument
2684 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
2688 impl<T: Clone, A: Allocator> Vec<T, A> {
2750 impl<T: PartialEq, A: Allocator> Vec<T, A> {
2786 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2798 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2817 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2850 impl<T, A: Allocator> ops::Deref for Vec<T, A> {
2860 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> {
2869 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
2903 impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
2915 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
2929 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
2946 impl<T, A: Allocator> IntoIterator for Vec<T, A> {
2948 type IntoIter = IntoIter<T, A>;
2991 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> {
3001 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> {
3012 impl<T, A: Allocator> Extend<T> for Vec<T, A> {
3029 impl<T, A: Allocator> Vec<T, A> {
3184 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A> in splice()
3243 pub fn extract_if<F>(&mut self, filter: F) -> ExtractIf<'_, T, F, A> in extract_if()
3266 impl<'a, T: Copy + 'a, A: Allocator> Extend<&'a T> for Vec<T, A> {
3297 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {}
3301 impl<T: Ord, A: Allocator> Ord for Vec<T, A> {
3309 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> {
3332 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
3339 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> {
3340 fn as_ref(&self) -> &Vec<T, A> { in as_ref() argument
3346 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> {
3347 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut() argument
3353 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> {
3360 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> {
3455 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> {
3465 fn from(s: Box<[T], A>) -> Self { in from()
3474 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3493 fn from(v: Vec<T, A>) -> Self { in from()
3514 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {
3515 type Error = Vec<T, A>;
3543 fn try_from(mut vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>> { in try_from() argument