Lines Matching defs:T

265     pub fn pin(x: T) -> Pin<Box<T>> {  in pin()
361 pub const fn new_in(x: T, alloc: A) -> Self in new_in()
390 pub const fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
427 pub const fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> 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()
499 pub const fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> 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()
553 pub const fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
565 pub const fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
616 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
641 pub fn new_zeroed_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_zeroed_slice()
667 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice()
699 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice()
738 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in()
766 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in()
803 pub const unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
838 pub const fn write(mut boxed: Self, value: T) -> Box<T, A> { in write()
879 pub unsafe fn assume_init(self) -> Box<[T], A> { in assume_init()
985 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1030 pub fn into_raw(b: Self) -> *mut T { in into_raw()
1083 pub const fn into_raw_with_allocator(b: Self) -> (*mut T, A) { in into_raw_with_allocator()
1096 pub const fn into_unique(b: Self) -> (Unique<T>, A) { in into_unique()
1414 fn from(boxed: Box<T, A>) -> Self { in from()
1435 fn from(slice: &[T]) -> Box<[T]> { in from()
1455 fn from(cow: Cow<'_, [T]>) -> Box<[T]> { in from()
1556 fn from(array: [T; N]) -> Box<[T]> { in from()
1603 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1633 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1662 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1692 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1721 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1751 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1780 let ptr: *const T = &**self; in fmt() constant
1790 fn deref(&self) -> &T { in deref()
1798 fn deref_mut(&mut self) -> &mut T { in deref_mut()
1832 fn some<T>(_: Option<T>, x: T) -> Option<T> { in last()
1927 fn borrow(&self) -> &T { in borrow()
1934 fn borrow_mut(&mut self) -> &mut T { in borrow_mut()
1941 fn as_ref(&self) -> &T { in as_ref()
1948 fn as_mut(&mut self) -> &mut T { in as_mut()