Expand description
CString and its related types.
Re-exportsยง
use core::borrow::Borrow;๐use core::ffi::CStr;๐use core::ffi::c_char;๐use core::num::NonZero;๐use core::slice::memchr;๐Experimental use core::str;๐use core::str::FromStr;๐use core::str::Utf8Error;๐use core::fmt;๐use core::mem;๐use core::ops;๐use core::ptr;๐use core::slice;๐use crate::alloc::Allocator;๐use crate::borrow::Cow;๐use crate::borrow::ToOwned;๐use crate::boxed::Box;๐use crate::rc::Rc;๐use crate::string::String;๐use crate::sync::Arc;๐use crate::vec::Vec;๐
Structsยง
- CString
- A type representing an owned, C-compatible, nul-terminated string with no nul bytes in the middle.
- From
VecWith NulError - An error indicating that a nul byte was not in the expected position.
- Into
String Error - An error indicating invalid UTF-8 when converting a
CStringinto aString. - NulError
- An error indicating that an interior nul byte was found.