| commit | ebef4a23a2dcf92f30eb8ce14a1275201a4a9a53 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 15:33:47 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 17:34:52 2020 -0700 |
| tree | 84a1545342139ebd856bf6dc9f76e2bffd598fe2 | |
| parent | 13af5ccb767a0c9cd3ecbe563e1564af9f5c5131 [diff] [blame] |
Implement fallible C++ functions
diff --git a/src/rust_str.rs b/src/rust_str.rs index 110889b..51e4835 100644 --- a/src/rust_str.rs +++ b/src/rust_str.rs
@@ -7,8 +7,8 @@ #[repr(C)] #[derive(Copy, Clone)] pub struct RustStr { - ptr: NonNull<u8>, - len: usize, + pub(crate) ptr: NonNull<u8>, + pub(crate) len: usize, } impl RustStr {