File tree 1 file changed +7
-1
lines changed 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ use self :: kind:: Kind ;
2
+
1
3
/// A type for which the layout is determined by its C++ definition.
2
4
///
3
5
/// This trait serves the following two related purposes.
@@ -135,7 +137,7 @@ pub unsafe trait ExternType {
135
137
/// by value, and include it in `struct`s that you have declared to
136
138
/// `cxx::bridge`. Your claim about the triviality of the C++ type will be
137
139
/// checked by a `static_assert` in the generated C++ side of the binding.
138
- type Kind ;
140
+ type Kind : Kind ;
139
141
}
140
142
141
143
/// Marker types identifying Rust's knowledge about an extern C++ type.
@@ -160,6 +162,10 @@ pub mod kind {
160
162
/// therefore be owned and moved around in Rust code without requiring
161
163
/// indirection.
162
164
pub enum Trivial { }
165
+
166
+ pub trait Kind { }
167
+ impl Kind for Opaque { }
168
+ impl Kind for Trivial { }
163
169
}
164
170
165
171
#[ doc( hidden) ]
You can’t perform that action at this time.
0 commit comments