Lines Matching refs:Allocator

74 use crate::alloc::{Allocator, Global};
402 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> {
550 impl<T, A: Allocator> Vec<T, A> {
1504 struct BackshiftOnDrop<'a, T, A: Allocator> { in retain_mut()
1511 impl<T, A: Allocator> Drop for BackshiftOnDrop<'_, T, A> { in retain_mut()
1532 fn process_loop<F, T, A: Allocator, const DELETED: bool>( in retain_mut() argument
1630 struct FillGapOnDrop<'a, T, A: core::alloc::Allocator> { in dedup_by()
1642 impl<'a, T, A: core::alloc::Allocator> Drop for FillGapOnDrop<'a, T, A> { in dedup_by()
2216 impl<T: Clone, A: Allocator> Vec<T, A> {
2315 impl<T, A: Allocator, const N: usize> Vec<[T; N], A> {
2386 impl<T, A: Allocator> Vec<T, A> {
2418 impl<T: PartialEq, A: Allocator> Vec<T, A> {
2454 pub fn from_elem_in<T: Clone, A: Allocator>(elem: T, n: usize, alloc: A) -> Vec<T, A> { in from_elem_in()
2466 impl<T: Clone, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2485 impl<T: Copy, A: Allocator> ExtendFromWithinSpec for Vec<T, A> {
2518 impl<T, A: Allocator> ops::Deref for Vec<T, A> {
2527 impl<T, A: Allocator> ops::DerefMut for Vec<T, A> {
2539 impl<T: Clone, A: Allocator> SpecCloneFrom for Vec<T, A> {
2555 impl<T: Copy, A: Allocator> SpecCloneFrom for Vec<T, A> {
2564 impl<T: Clone, A: Allocator + Clone> Clone for Vec<T, A> {
2599 impl<T: Hash, A: Allocator> Hash for Vec<T, A> {
2611 impl<T, I: SliceIndex<[T]>, A: Allocator> Index<I> for Vec<T, A> {
2625 impl<T, I: SliceIndex<[T]>, A: Allocator> IndexMut<I> for Vec<T, A> {
2642 impl<T, A: Allocator> IntoIterator for Vec<T, A> {
2684 impl<'a, T, A: Allocator> IntoIterator for &'a Vec<T, A> {
2694 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> {
2705 impl<T, A: Allocator> Extend<T> for Vec<T, A> {
2722 impl<T, A: Allocator> Vec<T, A> {
2862 impl<'a, T: Copy + 'a, A: Allocator + 'a> Extend<&'a T> for Vec<T, A> {
2880 impl<T: PartialOrd, A: Allocator> PartialOrd for Vec<T, A> {
2888 impl<T: Eq, A: Allocator> Eq for Vec<T, A> {}
2892 impl<T: Ord, A: Allocator> Ord for Vec<T, A> {
2900 unsafe impl<#[may_dangle] T, A: Allocator> Drop for Vec<T, A> {
2922 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> {
2929 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> {
2936 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> {
2943 impl<T, A: Allocator> AsRef<[T]> for Vec<T, A> {
2950 impl<T, A: Allocator> AsMut<[T]> for Vec<T, A> {
3044 impl<T, A: Allocator> From<Box<[T], A>> for Vec<T, A> {
3063 impl<T, A: Allocator> From<Vec<T, A>> for Box<[T], A> {
3095 impl<T, A: Allocator, const N: usize> TryFrom<Vec<T, A>> for [T; N] {