Lines Matching refs:usize
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() argument
792 pub fn new_zeroed_slice_in(len: usize, alloc: A) -> Box<[mem::MaybeUninit<T>], A> { in new_zeroed_slice_in() argument
1413 fn write_usize(&mut self, i: usize) { in write_usize() argument
1434 fn write_length_prefix(&mut self, len: usize) { in write_length_prefix() argument
1633 impl<T, const N: usize> From<[T; N]> for Box<[T]> {
1654 unsafe fn boxed_slice_as_array_unchecked<T, A: Allocator, const N: usize>( in boxed_slice_as_array_unchecked()
1666 impl<T, const N: usize> TryFrom<Box<[T]>> for Box<[T; N]> {
1689 impl<T, const N: usize> TryFrom<Vec<T>> for Box<[T; N]> {
1947 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument
1950 fn nth(&mut self, n: usize) -> Option<I::Item> { in nth()
1989 fn nth_back(&mut self, n: usize) -> Option<I::Item> { in nth_back()
1995 fn len(&self) -> usize { in len() argument
2159 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint() argument