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.
Send
Sync
1 parent d8bd950 commit 0915101Copy full SHA for 0915101
pixman/src/lib.rs
@@ -163,3 +163,20 @@ pub fn sample_ceil_y(y: impl Into<Fixed>, bpp: i32) -> Fixed {
163
pub fn sample_floor_y(y: impl Into<Fixed>, bpp: i32) -> Fixed {
164
Fixed::from_raw(unsafe { ffi::pixman_sample_floor_y(y.into().into_raw(), bpp) })
165
}
166
+
167
+#[cfg(all(test, feature = "sync"))]
168
+mod test {
169
+ use super::*;
170
171
+ fn is_send_and_sync<T: Send + Sync>() {}
172
173
+ #[test]
174
+ fn test_send_sync() {
175
+ is_send_and_sync::<Image<'static, 'static>>();
176
+ is_send_and_sync::<ImageRef>();
177
+ is_send_and_sync::<LinearGradient>();
178
+ is_send_and_sync::<RadialGradient>();
179
+ is_send_and_sync::<ConicalGradient>();
180
+ is_send_and_sync::<Solid>();
181
+ }
182
+}
0 commit comments