Sha256: 4c67871b59fb0ce1c13c54b2df2e2054cf02986152bcead7a701fc272ded3cbd
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, std::string::String, }; impl<'a> Arbitrary<'a> for String { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { <&str as Arbitrary>::arbitrary(u).map(Into::into) } fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { <&str as Arbitrary>::arbitrary_take_rest(u).map(Into::into) } #[inline] fn size_hint(depth: usize) -> (usize, Option<usize>) { <&str as Arbitrary>::size_hint(depth) } }
Version data entries
3 entries across 3 versions & 1 rubygems