Lines Matching +full:all +full:- +full:impls
12 sensitive but CXX will topologically sort and forward-declare your types as
17 For enums, only C-like a.k.a. unit variants are currently supported.
35 fn deck() -> Vec<PlayingCard>;
43 Shared structs compile to an aggregate-initialization compatible C++ struct.
65 all of the listed variants, we use a Rust representation for shared enums that
126 You may provide explicit discriminants for some or all of the enum variants, in
146 fitting all the discriminants (whether explicit or implicit). If you need a
197 variants and discriminant values and integer representation written in Rust all
200 Extern enums support all the same features as ordinary shared enums (explicit
201 discriminants, repr). Again, CXX will static assert that all of those things you
209 - `Clone`
210 - `Copy`
211 - `Debug`
212 - `Default`
213 - `Eq`
214 - `Hash`
215 - `Ord`
216 - `PartialEq`
217 - `PartialOrd`
219 Note that shared enums automatically always come with impls of `Copy`, `Clone`,
242 - `Hash` gives you a specialization of [`template <> struct std::hash<T>`][hash] in C++
243 - `PartialEq` produces `operator==` and `operator!=`
244 - `PartialOrd` produces `operator<`, `operator<=`, `operator>`, `operator>=`