-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5f69bd
commit 8b77645
Showing
7 changed files
with
71 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
//! [`CString`] and its related types. | ||
|
||
#[cfg(test)] | ||
mod tests; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//! [`CStr`], [`CString`], and related types. | ||
|
||
#[stable(feature = "rust1", since = "1.0.0")] | ||
pub use core::ffi::c_str::CStr; | ||
|
||
#[stable(feature = "cstr_from_bytes", since = "1.10.0")] | ||
pub use core::ffi::c_str::FromBytesWithNulError; | ||
|
||
#[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")] | ||
pub use core::ffi::c_str::FromBytesUntilNulError; | ||
|
||
#[stable(feature = "rust1", since = "1.0.0")] | ||
pub use alloc::ffi::c_str::{CString, NulError}; | ||
|
||
#[stable(feature = "cstring_from_vec_with_nul", since = "1.58.0")] | ||
pub use alloc::ffi::c_str::FromVecWithNulError; | ||
|
||
#[stable(feature = "cstring_into", since = "1.7.0")] | ||
pub use alloc::ffi::c_str::IntoStringError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters