Module std::ffiUnstable [-] [+] [src]

Utilities related to FFI bindings.

Structs

CStr

Representation of a borrowed C string.

CString

A type representing an owned C-compatible string

NulError

An error returned from CString::new to indicate that a nul byte was found in the vector provided.

OsStr

Slices into OS strings.

OsString

Owned, mutable OS strings.

Traits

AsOsStr

Freely convertible to an &OsStr slice.

IntoBytes

A conversion trait used by the constructor of CString for types that can be converted to a vector of bytes.

Functions

c_str_to_bytes

Deprecated in favor of CStr

c_str_to_bytes_with_nul

Deprecated in favor of CStr