std::ffi

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部