Skip to main content

Module c_str

Module c_str 

1.88.0 ยท Source
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.
FromVecWithNulError
An error indicating that a nul byte was not in the expected position.
IntoStringError
An error indicating invalid UTF-8 when converting a CString into a String.
NulError
An error indicating that an interior nul byte was found.

Enumsยง

FromBytesWithNulErrorKind ๐Ÿ”’