diff options
| author | ltdk <usr@ltdk.xyz> | 2023-08-19 18:46:11 -0400 |
|---|---|---|
| committer | ltdk <usr@ltdk.xyz> | 2024-02-22 02:09:26 -0500 |
| commit | 1ea6cd715e01f14395ee3f7d944ecc68adf0dde4 (patch) | |
| tree | c8e2dcf8e26e3057e6198d5cdb987a01d0b90fd9 /library/alloc | |
| parent | c5f69bdd5173a948e0131f934fa7c4cbf5e0b55f (diff) | |
| download | rust-1ea6cd715e01f14395ee3f7d944ecc68adf0dde4.tar.gz rust-1ea6cd715e01f14395ee3f7d944ecc68adf0dde4.zip | |
Add std::ffi::c_str modules
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/ffi/c_str.rs | 2 | ||||
| -rw-r--r-- | library/alloc/src/ffi/mod.rs | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/library/alloc/src/ffi/c_str.rs b/library/alloc/src/ffi/c_str.rs index 9419b0cfb24..35d1f681af6 100644 --- a/library/alloc/src/ffi/c_str.rs +++ b/library/alloc/src/ffi/c_str.rs @@ -1,3 +1,5 @@ +//! [`CString`] and its related types. + #[cfg(test)] mod tests; diff --git a/library/alloc/src/ffi/mod.rs b/library/alloc/src/ffi/mod.rs index e8530fbc1f0..9fc1acc231b 100644 --- a/library/alloc/src/ffi/mod.rs +++ b/library/alloc/src/ffi/mod.rs @@ -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; +pub use self::c_str::{FromVecWithNulError, IntoStringError, NulError}; + +#[doc(inline)] #[stable(feature = "alloc_c_string", since = "1.64.0")] -pub use self::c_str::{CString, IntoStringError, NulError}; +pub use self::c_str::CString; -mod c_str; +#[unstable(feature = "c_str_module", issue = "112134")] +pub mod c_str; |
