Lines Matching refs:usize
18 pub const fn len(&self) -> usize { in len() argument
157 pub const fn len(&self) -> usize { in len() argument
163 pub const fn len_with_nul(&self) -> usize { in len_with_nul() argument
454 impl Index<ops::RangeFrom<usize>> for CStr {
458 fn index(&self, index: ops::RangeFrom<usize>) -> &Self::Output { in index()
482 impl CStrIndex for usize {} implementation
483 impl CStrIndex for ops::Range<usize> {}
484 impl CStrIndex for ops::RangeInclusive<usize> {}
485 impl CStrIndex for ops::RangeToInclusive<usize> {}
605 bytes[i as usize] = i.wrapping_add(1); in test_cstr_display_all_bytes()
663 beg: usize,
664 pos: usize,
665 end: usize,
700 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
701 let pos = buf as usize; in from_buffer()
719 pub(crate) fn bytes_written(&self) -> usize { in bytes_written() argument
762 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()