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.
Pod
1 parent 6a7d82e commit 30e5a30Copy full SHA for 30e5a30
src/libcore/marker.rs
@@ -51,6 +51,7 @@ pub trait Sized : MarkerTrait {
51
// Empty.
52
}
53
54
+#[cfg(stage0)]
55
/// Types that can be copied by simply copying bits (i.e. `memcpy`).
56
///
57
/// By default, variable bindings have 'move semantics.' In other
@@ -156,6 +157,20 @@ pub trait Copy : MarkerTrait {
156
157
158
159
160
+/// TODO(japaric) docs
161
+#[cfg(not(stage0))]
162
+#[lang="copy"]
163
+pub trait Copy: Pod {
164
+ // Empty
165
+}
166
+
167
168
169
+#[lang="pod"]
170
+pub trait Pod: MarkerTrait {
171
172
173
174
/// Types that can be safely shared between threads when aliased.
175
176
/// The precise definition is: a type `T` is `Sync` if `&T` is
0 commit comments