Lines Matching refs:A
201 #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
202 >(Unique<T>, A);
364 impl<T, A: Allocator> Box<T, A> {
382 pub fn new_in(x: T, alloc: A) -> Self in new_in()
384 A: Allocator, in new_in()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
412 A: Allocator, in try_new_in()
445 pub fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_uninit_in()
447 A: Allocator, in new_uninit_in()
482 pub fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in() argument
484 A: Allocator, in try_new_uninit_in()
515 pub fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
517 A: Allocator, in new_zeroed_in()
552 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in() argument
554 A: Allocator, in try_new_zeroed_in()
572 pub fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
574 A: 'static + Allocator, in pin_in()
583 pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice() argument
725 impl<T, A: Allocator> Box<[T], A> {
752 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in() argument
780 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in() argument
785 impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
816 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init() argument
850 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write() argument
858 impl<T, A: Allocator> Box<[mem::MaybeUninit<T>], A> {
891 pub unsafe fn assume_init(self) -> Box<[T], A> { in assume_init() argument
947 impl<T: ?Sized, A: Allocator> Box<T, A> {
998 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1095 pub fn into_raw_with_allocator(b: Self) -> (*mut T, A) { in into_raw_with_allocator() argument
1107 pub fn into_unique(b: Self) -> (Unique<T>, A) { in into_unique() argument
1125 pub const fn allocator(b: &Self) -> &A { in allocator() argument
1168 A: 'a, in leak()
1207 A: 'static, in into_pin()
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>>
1444 A: 'static,
1457 fn from(boxed: Box<T, A>) -> Self { in from()
1585 impl<A: Allocator> From<Box<str, A>> for Box<[u8], A> {
1603 fn from(s: Box<str, A>) -> Self { in from()
1632 unsafe fn boxed_slice_as_array_unchecked<T, A: Allocator, const N: usize>( in boxed_slice_as_array_unchecked()
1633 boxed_slice: Box<[T], A>, in boxed_slice_as_array_unchecked() argument
1634 ) -> Box<[T; N], A> { in boxed_slice_as_array_unchecked()
1698 impl<A: Allocator> Box<dyn Any, A> {
1718 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1748 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
1757 impl<A: Allocator> Box<dyn Any + Send, A> {
1777 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1807 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
1816 impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
1836 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1866 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
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>
2094 A: 'static,
2105 impl<G: ?Sized + Generator<R>, R, A: Allocator> Generator<R> for Pin<Box<G, A>>
2107 A: 'static,
2118 impl<F: ?Sized + Future + Unpin, A: Allocator> Future for Box<F, A>
2120 A: 'static,