Lines Matching refs:Allocator
27 use crate::alloc::Allocator;
94 use core::alloc::Allocator;
102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec()
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec()
118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
127 struct DropGuard<'a, T, A: Allocator> { in to_vec()
131 impl<'a, T, A: Allocator> Drop for DropGuard<'a, T, A> { in to_vec()
163 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
438 pub fn to_vec_in<A: Allocator>(&self, alloc: A) -> Vec<T, A> in to_vec_in()
463 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec()
774 impl<T, A: Allocator> Borrow<[T]> for Vec<T, A> {
781 impl<T, A: Allocator> BorrowMut<[T]> for Vec<T, A> {
791 pub(crate) trait SpecCloneIntoVec<T, A: Allocator> {
796 impl<T: Clone, A: Allocator> SpecCloneIntoVec<T, A> for [T] {
812 impl<T: Copy, A: Allocator> SpecCloneIntoVec<T, A> for [T] {