Lines Matching refs:Allocator

70 use crate::alloc::{Allocator, Global};
399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
650 impl<T, A: Allocator> Vec<T, A> {
1715 struct BackshiftOnDrop<'a, T, A: Allocator> { 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() argument
1841 struct FillGapOnDrop<'a, T, A: core::alloc::Allocator> { in dedup_by()
1853 impl<'a, T, A: core::alloc::Allocator> Drop for FillGapOnDrop<'a, T, A> { in dedup_by()
2480 impl<T: Clone, A: Allocator> Vec<T, A> {
2642 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
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()
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> {
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> {
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> {
3350 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> {
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> {
3478 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3518 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {