Expand description
CStr and its related types.
Re-exportsยง
use crate::cmp::Ordering;๐use crate::error::Error;๐use crate::ffi::c_char;๐use crate::intrinsics::const_eval_select;๐Experimental use crate::intrinsics::const_eval_select;๐Experimental use crate::iter::FusedIterator;๐use crate::marker::PhantomData;๐use crate::num::niche_types::UsizeNoHighBitMinusOne;๐Experimental use crate::ptr::NonNull;๐use crate::slice::memchr;๐Experimental use crate::fmt;๐use crate::ops;๐use crate::range;๐use crate::slice;๐use crate::str;๐
Structsยง
- CStr
- A dynamically-sized view of a C string.
- Display
- Helper struct for safely printing a
CStrwithformat!and{}. - From
Bytes Until NulError - An error indicating that no nul byte was present.
- Bytes
Experimental - An iterator over the bytes of a
CStr, without the nul terminator.
Enumsยง
- From
Bytes With NulError - An error indicating that a nul byte was not in the expected position.
Functionsยง
- strlen ๐ โ
Experimental - Calculate the length of a nul-terminated string. Defers to Cโs
strlenwhen possible.