Lines Matching refs:usize
18 pub const fn len(&self) -> usize { in len() argument
214 pub const fn len(&self) -> usize { in len() argument
220 pub const fn len_with_nul(&self) -> usize { in len_with_nul() argument
536 impl Index<ops::RangeFrom<usize>> for CStr {
540 fn index(&self, index: ops::RangeFrom<usize>) -> &Self::Output { in index()
564 impl CStrIndex for usize {} implementation
565 impl CStrIndex for ops::Range<usize> {}
566 impl CStrIndex for ops::RangeInclusive<usize> {}
567 impl CStrIndex for ops::RangeToInclusive<usize> {}
675 bytes[i as usize] = i.wrapping_add(1); in test_cstr_display_all_bytes()
737 beg: usize,
738 pos: usize,
739 end: usize,
762 beg: pos as usize, in from_ptrs()
763 pos: pos as usize, in from_ptrs()
764 end: end as usize, in from_ptrs()
774 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
775 let pos = buf as usize; in from_buffer()
793 pub(crate) fn bytes_written(&self) -> usize { in bytes_written() argument
836 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()