Lines Matching defs:T
287 pub fn pin(x: T) -> Pin<Box<T>> { in pin()
382 pub fn new_in(x: T, alloc: A) -> Self in new_in()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
445 pub fn new_uninit_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> 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()
515 pub fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> 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()
572 pub fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
583 pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
601 pub fn into_inner(boxed: Self) -> T { in into_inner()
630 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
655 pub fn new_zeroed_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_zeroed_slice()
681 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice()
713 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice()
752 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in()
780 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in()
816 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
850 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write()
891 pub unsafe fn assume_init(self) -> Box<[T], A> { in assume_init()
998 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1043 pub fn into_raw(b: Self) -> *mut T { in into_raw()
1095 pub fn into_raw_with_allocator(b: Self) -> (*mut T, A) { in into_raw_with_allocator()
1107 pub fn into_unique(b: Self) -> (Unique<T>, A) { in into_unique()
1457 fn from(boxed: Box<T, A>) -> Self { in from()
1506 fn from(slice: &[T]) -> Box<[T]> { in from()
1521 fn from(cow: Cow<'_, [T]>) -> Box<[T]> { in from()
1622 fn from(array: [T; N]) -> Box<[T]> { 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()
1718 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1748 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1777 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1807 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1836 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1866 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1904 fn deref(&self) -> &T { in deref()
1911 fn deref_mut(&mut self) -> &mut T { in deref_mut()
1945 fn some<T>(_: Option<T>, x: T) -> Option<T> { in last()
2040 fn borrow(&self) -> &T { in borrow()
2047 fn borrow_mut(&mut self) -> &mut T { in borrow_mut()
2054 fn as_ref(&self) -> &T { in as_ref()
2061 fn as_mut(&mut self) -> &mut T { in as_mut()
2147 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error>> { in downcast()
2164 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error + Send>> { in downcast()
2178 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> { in downcast()