Home
last modified time | relevance | path

Searched refs:checked_cstr (Results 1 – 1 of 1) sorted by relevance

/linux-6.15/rust/kernel/
H A Dstr.rs619 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_to_str() localVariable
620 let checked_str = checked_cstr.to_str().unwrap(); in test_cstr_to_str()
628 let checked_cstr = CStr::from_bytes_with_nul(bad_bytes).unwrap(); in test_cstr_to_str_panic() localVariable
629 checked_cstr.to_str().unwrap(); in test_cstr_to_str_panic()
635 let checked_cstr = CStr::from_bytes_with_nul(good_bytes).unwrap(); in test_cstr_as_str_unchecked() localVariable
637 let unchecked_str = unsafe { checked_cstr.as_str_unchecked() }; in test_cstr_as_str_unchecked()