arbitrary/foreign/core/
iter.rs

1use {
2    crate::{Arbitrary, Result, Unstructured},
3    core::iter::{empty, Empty},
4};
5
6impl<'a, A> Arbitrary<'a> for Empty<A>
7where
8    A: Arbitrary<'a>,
9{
10    fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> {
11        Ok(empty())
12    }
13
14    #[inline]
15    fn size_hint(_depth: usize) -> (usize, Option<usize>) {
16        (0, Some(0))
17    }
18}