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()
519 pub fn new_zeroed_in(alloc: A) -> Box<mem::MaybeUninit<T>, A> in new_zeroed_in()
556 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in()
580 pub fn pin_in(x: T, alloc: A) -> Pin<Self> in pin_in()
591 pub fn into_boxed_slice(boxed: Self) -> Box<[T], A> { in into_boxed_slice()
609 pub fn into_inner(boxed: Self) -> T { in into_inner()
638 pub fn new_uninit_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_uninit_slice()
663 pub fn new_zeroed_slice(len: usize) -> Box<[mem::MaybeUninit<T>]> { in new_zeroed_slice()
689 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice()
723 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice()
764 pub fn new_uninit_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_uninit_slice_in()
792 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in()
828 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
862 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write()
903 pub unsafe fn assume_init(self) -> Box<[T], A> { in assume_init()
1010 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1055 pub fn into_raw(b: Self) -> *mut T { in into_raw()
1107 pub fn into_raw_with_allocator(b: Self) -> (*mut T, A) { in into_raw_with_allocator()
1119 pub fn into_unique(b: Self) -> (Unique<T>, A) { in into_unique()
1479 fn from(boxed: Box<T, A>) -> Self { in from()
1528 fn from(slice: &[T]) -> Box<[T]> { in from()
1543 fn from(cow: Cow<'_, [T]>) -> Box<[T]> { in from()
1644 fn from(array: [T; N]) -> Box<[T]> { in from()
1654 unsafe fn boxed_slice_as_array_unchecked<T, A: Allocator, const N: usize>( in boxed_slice_as_array_unchecked()
1655 boxed_slice: Box<[T], A>, in boxed_slice_as_array_unchecked()
1740 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1770 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1799 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1829 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1858 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast()
1888 pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> { in downcast_unchecked()
1917 let ptr: *const T = &**self; in fmt() constant
1926 fn deref(&self) -> &T { in deref()
1933 fn deref_mut(&mut self) -> &mut T { in deref_mut()
1967 fn some<T>(_: Option<T>, x: T) -> Option<T> { in last()
2062 fn borrow(&self) -> &T { in borrow()
2069 fn borrow_mut(&mut self) -> &mut T { in borrow_mut()
2076 fn as_ref(&self) -> &T { in as_ref()
2083 fn as_mut(&mut self) -> &mut T { in as_mut()
2169 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error>> { in downcast()
2186 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error + Send>> { in downcast()
2200 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> { in downcast()