W3cubDocs

/Rust

Module std::ffi

Utilities related to FFI bindings.

Structs

CStr

Representation of a borrowed C string.

CString

A type representing an owned C-compatible string

FromBytesWithNulError

An error returned from CStr::from_bytes_with_nul to indicate that a nul byte was found too early in the slice provided or one wasn't found at all.

IntoStringError

An error returned from CString::into_string to indicate that a UTF-8 error was encountered during the conversion.

NulError

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

OsStr

Slices into OS strings (see OsString).

OsString

A type that can represent owned, mutable platform-native strings, but is cheaply inter-convertible with Rust strings.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/ffi/index.html