Lines Matching refs:usize
18 pub const fn len(&self) -> usize { in len() argument
205 pub const fn len(&self) -> usize { in len() argument
211 pub const fn len_with_nul(&self) -> usize { in len_with_nul() argument
505 impl Index<ops::RangeFrom<usize>> for CStr {
509 fn index(&self, index: ops::RangeFrom<usize>) -> &Self::Output { in index()
533 impl CStrIndex for usize {} implementation
534 impl CStrIndex for ops::Range<usize> {}
535 impl CStrIndex for ops::RangeInclusive<usize> {}
536 impl CStrIndex for ops::RangeToInclusive<usize> {}
658 bytes[i as usize] = i.wrapping_add(1); in test_cstr_display_all_bytes()
716 beg: usize,
717 pos: usize,
718 end: usize,
753 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
754 let pos = buf as usize; in from_buffer()
772 pub(crate) fn bytes_written(&self) -> usize { in bytes_written() argument
815 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()