David Tolnay
33169bdd59
Safe to assume more about the Box representation
...
https://doc.rust-lang.org/std/boxed/index.html :
So long as T: Sized, a Box<T> is guaranteed to be represented as a
single pointer and is also ABI-compatible with C pointers (i.e. the C
type T*).
2020-03-06 13:10:58 -08:00
David Tolnay
d1e2efc847
Begin to introduce Rust-style move for C++ objects
2020-03-06 10:25:50 -08:00
David Tolnay
4590d2af81
Delete unused get_raw member from Box
2020-03-02 00:03:25 -08:00
David Tolnay
851677c4cc
Remove insignificant parameter names from header
2020-03-01 23:49:46 -08:00
David Tolnay
2248c3064e
Write Box internals in terms of type aliases
2020-03-01 21:13:32 -08:00
David Tolnay
9f9213709d
Backport type aliases to c++11
2020-03-01 21:09:40 -08:00
David Tolnay
f6292378c7
Add rust::Box member type aliases
2020-03-01 21:09:11 -08:00
David Tolnay
d9c4ac955f
Organize string constructors
2020-03-01 20:36:21 -08:00
David Tolnay
baae443ae2
Change Str to Repr operator to explicit
2020-03-01 20:20:10 -08:00
David Tolnay
404d689e95
Change string cast operators to explicit
2020-03-01 20:19:41 -08:00
David Tolnay
001102af71
Use iosfwd for forward declared ostream insertion operators
2020-03-01 20:05:04 -08:00
David Tolnay
3b0c988059
Expose snake case type aliases
2020-03-01 14:08:57 -08:00
David Tolnay
69fe4c25ec
Format with clang-format
2020-03-01 14:05:01 -08:00
David Tolnay
750755e557
Rename namespace to rust::inline cxxbridge01
2020-03-01 13:47:29 -08:00
David Tolnay
324437a263
Rename C++ RustBox to Box
2020-03-01 13:47:29 -08:00
David Tolnay
09dbe75a5d
Rename C++ RustStr to Str
2020-03-01 13:47:28 -08:00
David Tolnay
5608216979
Rename C++ RustString to String
2020-03-01 13:47:28 -08:00
David Tolnay
649337e12d
Move namespace alias to top of header for visibility
2020-02-25 18:11:20 -08:00
David Tolnay
908385887b
Protect from ADL in Box construction and assignment
2020-02-23 00:57:03 -08:00
David Tolnay
e43b737f2c
Release 0.1.0
2020-01-08 08:57:24 -08:00
David Tolnay
7db7369797
Safe FFI between Rust and C++
2020-01-08 08:57:24 -08:00