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.
2 parents 7ea39f1 + 5adb4a9 commit 864f11dCopy full SHA for 864f11d
src/lib.rs
@@ -1108,6 +1108,17 @@ impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for ::std::marker::PhantomData<A> {
1108
}
1109
1110
1111
+impl<'a> Arbitrary<'a> for ::std::marker::PhantomPinned {
1112
+ fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> {
1113
+ Ok(::std::marker::PhantomPinned)
1114
+ }
1115
+
1116
+ #[inline]
1117
+ fn size_hint(_depth: usize) -> (usize, Option<usize>) {
1118
+ (0, Some(0))
1119
1120
+}
1121
1122
impl<'a, A: Arbitrary<'a>> Arbitrary<'a> for ::std::num::Wrapping<A> {
1123
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
1124
Arbitrary::arbitrary(u).map(::std::num::Wrapping)
0 commit comments