Lines Matching defs:usize

828     fn size_of_val_raw(ptr: NonNull<Self>) -> Option<usize> {  in size_of_val_raw()
870 fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize> { in size_for_metadata()
954 fn to_elem_count(self) -> usize; in to_elem_count()
969 fn size_for_metadata(self, layout: DstLayout) -> Option<usize>; in size_for_metadata()
975 fn from_elem_count(_elems: usize) -> () {} in from_elem_count()
978 fn to_elem_count(self) -> usize { in to_elem_count()
983 fn size_for_metadata(self, layout: DstLayout) -> Option<usize> { in size_for_metadata()
993 impl PointerMetadata for usize { implementation
995 fn from_elem_count(elems: usize) -> usize { in from_elem_count()
1000 fn to_elem_count(self) -> usize { in to_elem_count()
1005 fn size_for_metadata(self, layout: DstLayout) -> Option<usize> { in size_for_metadata()
1075 fn pointer_to_metadata(ptr: *mut [T]) -> usize { in pointer_to_metadata()
2521 count: usize, in try_ref_from_bytes_with_elems()
2642 count: usize, in try_ref_from_prefix_with_elems()
2750 count: usize, in try_ref_from_suffix_with_elems()
2846 count: usize, in try_mut_from_bytes_with_elems()
2957 count: usize, in try_mut_from_prefix_with_elems()
3057 count: usize, in try_mut_from_suffix_with_elems()
3799 position: usize, in insert_vec_zeroed()
3800 additional: usize, in insert_vec_zeroed()
4711 count: usize, in ref_from_bytes_with_elems()
4810 count: usize, in ref_from_prefix_with_elems()
4904 count: usize, in ref_from_suffix_with_elems()
4985 count: usize, in mut_from_bytes_with_elems()
5075 count: usize, in mut_from_prefix_with_elems()
5160 count: usize, in mut_from_suffix_with_elems()
6438 additional: usize, in extend_vec_zeroed()
6455 position: usize, in insert_vec_zeroed()
6456 additional: usize, in insert_vec_zeroed()
7055 fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { in test_read_io_with_padding_soundness()