Lines Matching refs:usize
19 pub const fn len(&self) -> usize { in len() argument
158 pub const fn len(&self) -> usize { in len() argument
164 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> {}
584 bytes[i as usize] = i.wrapping_add(1); in test_cstr_display_all_bytes()
642 beg: usize,
643 pos: usize,
644 end: usize,
679 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()
680 let pos = buf as usize; in from_buffer()
698 pub(crate) fn bytes_written(&self) -> usize { in bytes_written() argument
741 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer()