Lines Matching refs:A
404 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
405 buf: RawVec<T, A>,
594 impl<T, A: Allocator> Vec<T, A> {
611 pub const fn new_in(alloc: A) -> Self { in new_in()
660 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
707 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
783 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
864 pub fn into_raw_parts_with_alloc(self) -> (*mut T, usize, usize, A) { in into_raw_parts_with_alloc() argument
1094 pub fn into_boxed_slice(mut self) -> Box<[T], A> { in into_boxed_slice() argument
1279 pub fn allocator(&self) -> &A { in allocator() argument
1595 struct BackshiftOnDrop<'a, T, A: Allocator> { in retain_mut()
1596 v: &'a mut Vec<T, A>, in retain_mut()
1602 impl<T, A: Allocator> Drop for BackshiftOnDrop<'_, T, A> { in retain_mut()
1623 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut()
1626 g: &mut BackshiftOnDrop<'_, T, A>, in retain_mut() argument
1659 process_loop::<F, T, A, false>(original_len, &mut f, &mut g); in retain_mut()
1662 process_loop::<F, T, A, true>(original_len, &mut f, &mut g); in retain_mut()
1721 struct FillGapOnDrop<'a, T, A: core::alloc::Allocator> { in dedup_by()
1730 vec: &'a mut Vec<T, A>, in dedup_by()
1733 impl<'a, T, A: core::alloc::Allocator> Drop for FillGapOnDrop<'a, T, A> { in dedup_by()
1953 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A> in drain()
2071 A: Clone, in split_off()
2172 A: 'a, in leak()
2307 impl<T: Clone, A: Allocator> Vec<T, A> {
2406 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
2429 pub fn into_flattened(self) -> Vec<T, A> { in into_flattened() argument
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> {
2509 impl<T: PartialEq, A: Allocator> Vec<T, A> {
2545 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in() argument
2557 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2576 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2609 impl<T, A: Allocator> ops::Deref for Vec<T, A> {
2618 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> {
2630 impl<T: Clone, A: Allocator> SpecCloneFrom for Vec<T, A> {
2646 impl<T: Copy, A: Allocator> SpecCloneFrom for Vec<T, A> {
2655 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
2690 impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
2702 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
2716 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
2733 impl<T, A: Allocator> IntoIterator for Vec<T, A> {
2735 type IntoIter = IntoIter<T, A>;
2751 fn into_iter(self) -> IntoIter<T, A> { in into_iter() argument
2775 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> {
2785 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> {
2796 impl<T, A: Allocator> Extend<T> for Vec<T, A> {
2813 impl<T, A: Allocator> Vec<T, A> {
2877 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A> in splice()
2930 pub fn drain_filter<F>(&mut self, filter: F) -> DrainFilter<'_, T, F, A> in drain_filter()
2953 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> {
2971 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> {
2979 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {}
2983 impl<T: Ord, A: Allocator> Ord for Vec<T, A> {
2991 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> {
3013 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
3020 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> {
3021 fn as_ref(&self) -> &Vec<T, A> { in as_ref() argument
3027 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> {
3028 fn as_mut(&mut self) -> &mut Vec<T, A> { in as_mut() argument
3034 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> {
3041 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> {
3136 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> {
3146 fn from(s: Box<[T], A>) -> Self { in from()
3155 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3166 fn from(v: Vec<T, A>) -> Self { 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() argument