Lines Matching refs:A
65 pub struct Box<T: ?Sized, A: Allocator>(NonNull<T>, PhantomData<A>);
105 unsafe impl<T, A: Allocator> ZeroableOption for Box<T, A> {}
108 unsafe impl<T, A> Send for Box<T, A>
111 A: Allocator,
116 unsafe impl<T, A> Sync for Box<T, A>
119 A: Allocator,
123 impl<T, A> Box<T, A>
126 A: Allocator,
177 impl<T, A> Box<MaybeUninit<T>, A>
179 A: Allocator,
189 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init() argument
199 pub fn write(mut self, value: T) -> Box<T, A> { in write() argument
207 impl<T, A> Box<T, A>
209 A: Allocator,
234 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() argument
236 let ptr = A::alloc(layout, flags)?; in new_uninit()
246 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin() argument
248 A: 'static, in pin()
260 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents() argument
280 pub fn drop_contents(this: Self) -> Box<MaybeUninit<T>, A> { in drop_contents() argument
299 impl<T, A> From<Box<T, A>> for Pin<Box<T, A>>
302 A: Allocator,
308 fn from(b: Box<T, A>) -> Self { in from()
315 impl<T, A> InPlaceWrite<T> for Box<MaybeUninit<T>, A>
317 A: Allocator + 'static,
319 type Initialized = Box<T, A>;
340 impl<T, A> InPlaceInit<T> for Box<T, A>
342 A: Allocator + 'static,
351 Box::<_, A>::new_uninit(flags)?.write_pin_init(init) in try_pin_init()
359 Box::<_, A>::new_uninit(flags)?.write_init(init) in try_init()
363 impl<T: 'static, A> ForeignOwnable for Box<T, A>
365 A: Allocator,
394 impl<T: 'static, A> ForeignOwnable for Pin<Box<T, A>>
396 A: Allocator,
436 impl<T, A> Deref for Box<T, A>
439 A: Allocator,
450 impl<T, A> DerefMut for Box<T, A>
453 A: Allocator,
462 impl<T, A> fmt::Display for Box<T, A>
465 A: Allocator,
472 impl<T, A> fmt::Debug for Box<T, A>
475 A: Allocator,
482 impl<T, A> Drop for Box<T, A>
485 A: Allocator,
496 unsafe { A::free(self.0.cast(), layout) }; in drop()