Debian Codegraph @

.cargo/vendor/arbitrary/src/foreign/core/iter.rs

raw
1 use {
2 crate::{Arbitrary, Result, Unstructured},
3 core::iter::{empty, Empty},
4 };
5
6 impl<'a, A> Arbitrary<'a> for Empty<A>
7 where
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 }