We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Hash
1 parent 4f1bbe9 commit 19f9c95Copy full SHA for 19f9c95
src/c_string.rs
@@ -12,7 +12,7 @@ use core::{
12
/// A fixed capacity [`CString`](https://doc.rust-lang.org/std/ffi/struct.CString.html).
13
///
14
/// It stores up to `N - 1` non-nul characters with a trailing nul terminator.
15
-#[derive(Clone, Default)]
+#[derive(Clone, Default, Hash)]
16
pub struct CString<const N: usize> {
17
inner: Vec<u8, N>,
18
}
0 commit comments