Skip to content

Commit 6698ad9

Browse files
feat(std): implement for atomic types (#225)
1 parent edecf3a commit 6698ad9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

confik/src/std_impls.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ use std::{
88
marker::PhantomData,
99
net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6},
1010
path::PathBuf,
11+
sync::atomic::{
12+
AtomicBool, AtomicI16, AtomicI32, AtomicI64, AtomicI8, AtomicIsize, AtomicU16, AtomicU32,
13+
AtomicU64, AtomicU8, AtomicUsize,
14+
},
1115
time::{Duration, SystemTime},
1216
};
1317

@@ -49,6 +53,11 @@ impl_multi_source_via_option! {
4953

5054
// Other standard types
5155
String, OsString, PathBuf, char, bool,
56+
57+
// Atomic types
58+
AtomicI8, AtomicI16, AtomicI32, AtomicI64, AtomicIsize,
59+
AtomicU8, AtomicU16, AtomicU32, AtomicU64, AtomicUsize,
60+
AtomicBool,
5261
}
5362

5463
// Containers

0 commit comments

Comments
 (0)