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 dd4bff1 commit 1edc03eCopy full SHA for 1edc03e
src/lib.rs
@@ -239,6 +239,9 @@ impl Drop for SmolBitSet {
239
}
240
241
242
+unsafe impl Send for SmolBitSet {}
243
+unsafe impl Sync for SmolBitSet {}
244
+
245
impl Default for SmolBitSet {
246
#[inline]
247
fn default() -> Self {
@@ -341,6 +344,18 @@ mod tests {
341
344
#[cfg(not(feature = "std"))]
342
345
use extern_alloc::string::{String, ToString};
343
346
347
+ #[test]
348
+ fn send() {
349
+ fn assert_send<T: Send>() {}
350
+ assert_send::<SmolBitSet>();
351
+ }
352
353
354
+ fn sync() {
355
+ fn assert_sync<T: Sync>() {}
356
+ assert_sync::<SmolBitSet>();
357
358
359
#[test]
360
fn check_highest_set_bit() {
361
let mut t: u64 = 0;
0 commit comments