Lines Matching refs:Allocator
172 use crate::alloc::{AllocError, Allocator, Global, Layout};
201 #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
364 impl<T, A: Allocator> Box<T, A> {
384 A: Allocator, in new_in() argument
412 A: Allocator, in try_new_in() argument
447 A: Allocator, in new_uninit_in() argument
484 A: Allocator, in try_new_uninit_in() argument
517 A: Allocator, in new_zeroed_in() argument
554 A: Allocator, in try_new_zeroed_in() argument
574 A: 'static + Allocator, in pin_in() argument
725 impl<T, A: Allocator> Box<[T], A> {
785 impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
858 impl<T, A: Allocator> Box<[mem::MaybeUninit<T>], A> {
947 impl<T: ?Sized, A: Allocator> Box<T, A> {
1217 unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Box<T, A> {
1259 impl<T: Clone, A: Allocator + Clone> Clone for Box<T, A> {
1318 impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for Box<T, A> {
1329 impl<T: ?Sized + PartialOrd, A: Allocator> PartialOrd for Box<T, A> {
1352 impl<T: ?Sized + Ord, A: Allocator> Ord for Box<T, A> {
1359 impl<T: ?Sized + Eq, A: Allocator> Eq for Box<T, A> {}
1362 impl<T: ?Sized + Hash, A: Allocator> Hash for Box<T, A> {
1369 impl<T: ?Sized + Hasher, A: Allocator> Hasher for Box<T, A> {
1442 impl<T: ?Sized, A: Allocator> From<Box<T, A>> for Pin<Box<T, A>>
1585 impl<A: Allocator> From<Box<str, A>> for Box<[u8], A> {
1632 unsafe fn boxed_slice_as_array_unchecked<T, A: Allocator, const N: usize>( in boxed_slice_as_array_unchecked() argument
1698 impl<A: Allocator> Box<dyn Any, A> {
1757 impl<A: Allocator> Box<dyn Any + Send, A> {
1816 impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
1877 impl<T: fmt::Display + ?Sized, A: Allocator> fmt::Display for Box<T, A> {
1884 impl<T: fmt::Debug + ?Sized, A: Allocator> fmt::Debug for Box<T, A> {
1891 impl<T: ?Sized, A: Allocator> fmt::Pointer for Box<T, A> {
1901 impl<T: ?Sized, A: Allocator> Deref for Box<T, A> {
1910 impl<T: ?Sized, A: Allocator> DerefMut for Box<T, A> {
1917 impl<T: ?Sized, A: Allocator> Receiver for Box<T, A> {}
1920 impl<I: Iterator + ?Sized, A: Allocator> Iterator for Box<I, A> {
1941 impl<I: Iterator + ?Sized, A: Allocator> BoxIter for Box<I, A> {
1956 impl<I: Iterator, A: Allocator> BoxIter for Box<I, A> {
1963 impl<I: DoubleEndedIterator + ?Sized, A: Allocator> DoubleEndedIterator for Box<I, A> {
1972 impl<I: ExactSizeIterator + ?Sized, A: Allocator> ExactSizeIterator for Box<I, A> {
1982 impl<I: FusedIterator + ?Sized, A: Allocator> FusedIterator for Box<I, A> {}
1985 impl<Args: Tuple, F: FnOnce<Args> + ?Sized, A: Allocator> FnOnce<Args> for Box<F, A> {
1994 impl<Args: Tuple, F: FnMut<Args> + ?Sized, A: Allocator> FnMut<Args> for Box<F, A> {
2001 impl<Args: Tuple, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
2008 impl<T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Box<U, A>> for Box<T, A> {}
2023 impl<T: Clone, A: Allocator + Clone> Clone for Box<[T], A> {
2039 impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Box<T, A> {
2046 impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for Box<T, A> {
2053 impl<T: ?Sized, A: Allocator> AsRef<T> for Box<T, A> {
2060 impl<T: ?Sized, A: Allocator> AsMut<T> for Box<T, A> {
2089 impl<T: ?Sized, A: Allocator> Unpin for Box<T, A> where A: 'static {}
2092 impl<G: ?Sized + Generator<R> + Unpin, R, A: Allocator> Generator<R> for Box<G, A>
2105 impl<G: ?Sized + Generator<R>, R, A: Allocator> Generator<R> for Pin<Box<G, A>>
2118 impl<F: ?Sized + Future + Unpin, A: Allocator> Future for Box<F, A>