Sha256: 67386fd457adfabcca6c6fdfbc6883782f6ee3bdd8c344e316adc4587de886af
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, core::marker::{PhantomData, PhantomPinned}, }; impl<'a, A> Arbitrary<'a> for PhantomData<A> where A: ?Sized, { fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { Ok(PhantomData) } #[inline] fn size_hint(_depth: usize) -> (usize, Option<usize>) { (0, Some(0)) } } impl<'a> Arbitrary<'a> for PhantomPinned { fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { Ok(PhantomPinned) } #[inline] fn size_hint(_depth: usize) -> (usize, Option<usize>) { (0, Some(0)) } }
Version data entries
3 entries across 3 versions & 1 rubygems