Lines Matching refs:A
186 #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global,
187 >(Unique<T>, A);
342 impl<T, A: Allocator> Box<T, A> {
361 pub const fn new_in(x: T, alloc: A) -> Self in new_in()
363 A: ~const Allocator + ~const Destruct, in new_in()
390 pub const fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
393 A: ~const Allocator + ~const Destruct, in try_new_in()
427 pub const fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_uninit_in()
429 A: ~const Allocator + ~const Destruct, in new_uninit_in()
465 pub const fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in() argument
467 A: ~const Allocator + ~const Destruct, in try_new_uninit_in()
499 pub const fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
501 A: ~const Allocator + ~const Destruct, in new_zeroed_in()
537 pub const fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in() argument
539 A: ~const Allocator + ~const Destruct, in try_new_zeroed_in()
553 pub const fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
555 A: 'static + ~const Allocator + ~const Destruct, in pin_in()
565 pub const fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice() argument
711 impl<T, A: Allocator> Box<[T], A> {
738 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in() argument
766 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in() argument
771 impl<T, A: Allocator> Box<mem::MaybeUninit<T>, A> {
803 pub const unsafe fn assume_init(self) -> Box<T, A> { in assume_init() argument
838 pub const fn write(mut boxed: Self, value: T) -> Box<T, A> { in write() argument
846 impl<T, A: Allocator> Box<[mem::MaybeUninit<T>], A> {
879 pub unsafe fn assume_init(self) -> Box<[T], A> { in assume_init() argument
934 impl<T: ?Sized, A: Allocator> Box<T, A> {
985 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1083 pub const fn into_raw_with_allocator(b: Self) -> (*mut T, A) { in into_raw_with_allocator() argument
1096 pub const fn into_unique(b: Self) -> (Unique<T>, A) { in into_unique() argument
1114 pub const fn allocator(b: &Self) -> &A { in allocator() argument
1158 A: 'a, in leak()
1172 A: 'static, in into_pin()
1182 unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Box<T, A> {
1223 impl<T: Clone, A: Allocator + Clone> Clone for Box<T, A> {
1282 impl<T: ?Sized + PartialEq, A: Allocator> PartialEq for Box<T, A> {
1293 impl<T: ?Sized + PartialOrd, A: Allocator> PartialOrd for Box<T, A> {
1316 impl<T: ?Sized + Ord, A: Allocator> Ord for Box<T, A> {
1323 impl<T: ?Sized + Eq, A: Allocator> Eq for Box<T, A> {}
1326 impl<T: ?Sized + Hash, A: Allocator> Hash for Box<T, A> {
1333 impl<T: ?Sized + Hasher, A: Allocator> Hasher for Box<T, A> {
1407 impl<T: ?Sized, A: Allocator> const From<Box<T, A>> for Pin<Box<T, A>>
1409 A: 'static,
1414 fn from(boxed: Box<T, A>) -> Self { in from()
1519 impl<A: Allocator> From<Box<str, A>> for Box<[u8], A> {
1537 fn from(s: Box<str, A>) -> Self { in from()
1583 impl<A: Allocator> Box<dyn Any, A> {
1603 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1633 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
1642 impl<A: Allocator> Box<dyn Any + Send, A> {
1662 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1692 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
1701 impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
1721 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1751 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked() argument
1762 impl<T: fmt::Display + ?Sized, A: Allocator> fmt::Display for Box<T, A> {
1769 impl<T: fmt::Debug + ?Sized, A: Allocator> fmt::Debug for Box<T, A> {
1776 impl<T: ?Sized, A: Allocator> fmt::Pointer for Box<T, A> {
1787 impl<T: ?Sized, A: Allocator> const Deref for Box<T, A> {
1797 impl<T: ?Sized, A: Allocator> const DerefMut for Box<T, A> {
1804 impl<T: ?Sized, A: Allocator> Receiver for Box<T, A> {}
1807 impl<I: Iterator + ?Sized, A: Allocator> Iterator for Box<I, A> {
1828 impl<I: Iterator + ?Sized, A: Allocator> BoxIter for Box<I, A> {
1843 impl<I: Iterator, A: Allocator> BoxIter for Box<I, A> {
1850 impl<I: DoubleEndedIterator + ?Sized, A: Allocator> DoubleEndedIterator for Box<I, A> {
1859 impl<I: ExactSizeIterator + ?Sized, A: Allocator> ExactSizeIterator for Box<I, A> {
1869 impl<I: FusedIterator + ?Sized, A: Allocator> FusedIterator for Box<I, A> {}
1872 impl<Args, F: FnOnce<Args> + ?Sized, A: Allocator> FnOnce<Args> for Box<F, A> {
1881 impl<Args, F: FnMut<Args> + ?Sized, A: Allocator> FnMut<Args> for Box<F, A> {
1888 impl<Args, F: Fn<Args> + ?Sized, A: Allocator> Fn<Args> for Box<F, A> {
1895 impl<T: ?Sized + Unsize<U>, U: ?Sized, A: Allocator> CoerceUnsized<Box<U, A>> for Box<T, A> {}
1910 impl<T: Clone, A: Allocator + Clone> Clone for Box<[T], A> {
1926 impl<T: ?Sized, A: Allocator> borrow::Borrow<T> for Box<T, A> {
1933 impl<T: ?Sized, A: Allocator> borrow::BorrowMut<T> for Box<T, A> {
1940 impl<T: ?Sized, A: Allocator> AsRef<T> for Box<T, A> {
1947 impl<T: ?Sized, A: Allocator> AsMut<T> for Box<T, A> {
1977 impl<T: ?Sized, A: Allocator> const Unpin for Box<T, A> where A: 'static {}
1980 impl<G: ?Sized + Generator<R> + Unpin, R, A: Allocator> Generator<R> for Box<G, A>
1982 A: 'static,
1993 impl<G: ?Sized + Generator<R>, R, A: Allocator> Generator<R> for Pin<Box<G, A>>
1995 A: 'static,
2006 impl<F: ?Sized + Future + Unpin, A: Allocator> Future for Box<F, A>
2008 A: 'static,