arbitrary/foreign/core/
iter.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use {
    crate::{Arbitrary, Result, Unstructured},
    core::iter::{empty, Empty},
};

impl<'a, A> Arbitrary<'a> for Empty<A>
where
    A: Arbitrary<'a>,
{
    fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> {
        Ok(empty())
    }

    #[inline]
    fn size_hint(_depth: usize) -> (usize, Option<usize>) {
        (0, Some(0))
    }
}