Sha256: 8e5ea3c9885db203cdfb55585c7f6d46f70aa626188abf80af58f2c96df38f53

Contents?: true

Size: 348 Bytes

Versions: 3

Compression:

Stored size: 348 Bytes

Contents

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))
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/arbitrary-1.4.1/src/foreign/core/iter.rs
wasmtime-28.0.0 ./ext/cargo-vendor/arbitrary-1.4.1/src/foreign/core/iter.rs
wasmtime-27.0.0 ./ext/cargo-vendor/arbitrary-1.4.1/src/foreign/core/iter.rs