Sha256: 9be6b63f3b932355a5ae0c578e10399b920bde91be9becb640d7e416462b2631
Contents?: true
Size: 984 Bytes
Versions: 3
Compression:
Stored size: 984 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, core::sync::atomic::{AtomicBool, AtomicIsize, AtomicUsize}, }; impl<'a> Arbitrary<'a> for AtomicBool { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { Arbitrary::arbitrary(u).map(Self::new) } #[inline] fn size_hint(depth: usize) -> (usize, Option<usize>) { <bool as Arbitrary<'a>>::size_hint(depth) } } impl<'a> Arbitrary<'a> for AtomicIsize { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { Arbitrary::arbitrary(u).map(Self::new) } #[inline] fn size_hint(depth: usize) -> (usize, Option<usize>) { <isize as Arbitrary<'a>>::size_hint(depth) } } impl<'a> Arbitrary<'a> for AtomicUsize { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { Arbitrary::arbitrary(u).map(Self::new) } #[inline] fn size_hint(depth: usize) -> (usize, Option<usize>) { <usize as Arbitrary<'a>>::size_hint(depth) } }
Version data entries
3 entries across 3 versions & 1 rubygems