Rollup merge of #112136 - clarfonthey:ffi-c_str, r=cuviper
Add std::ffi::c_str module ACP: rust-lang/libs-team#134 `std::ffi` docs before change:  `std::ffi` docs after change:  (note: I'm omitting the `c_int`, etc. stuff from the screenshots since it's the same in both. this doesn't just delete those types)
This commit is contained in:
commit
1b44889ec2
7 changed files with 80 additions and 17 deletions
|
@ -1,3 +1,5 @@
|
|||
//! [`CString`] and its related types.
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
|
|
|
@ -80,9 +80,13 @@
|
|||
|
||||
#![stable(feature = "alloc_ffi", since = "1.64.0")]
|
||||
|
||||
#[doc(no_inline)]
|
||||
#[stable(feature = "alloc_c_string", since = "1.64.0")]
|
||||
pub use self::c_str::FromVecWithNulError;
|
||||
#[stable(feature = "alloc_c_string", since = "1.64.0")]
|
||||
pub use self::c_str::{CString, IntoStringError, NulError};
|
||||
pub use self::c_str::{FromVecWithNulError, IntoStringError, NulError};
|
||||
|
||||
mod c_str;
|
||||
#[doc(inline)]
|
||||
#[stable(feature = "alloc_c_string", since = "1.64.0")]
|
||||
pub use self::c_str::CString;
|
||||
|
||||
#[unstable(feature = "c_str_module", issue = "112134")]
|
||||
pub mod c_str;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue