Skip to main content

Module ffi

Module ffi 

Source
Expand description

FFI and OS-string helpers OS string types and null-terminated C strings for #![no_std] use.

Structs§

CString
A heap-allocated, null-terminated byte string suitable for C APIs.
EncodeWide
Iterator that yields UTF-16 code units for a str.
NulError
Error returned when a string contains an interior null byte.

Traits§

OsStrExt
Extension methods on OsStr (str) providing byte-level access and Windows UTF-16 encoding.

Type Aliases§

OsStr
OS string slice — an alias for str.
OsString
Owned OS string — an alias for String.