Sha256: e20cce997e2139d51dc345375e3ad8da3385de7d46e3dc288fc4963835fcb0e6
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
use { crate::{Arbitrary, Result, Unstructured}, std::ffi::OsString, }; impl<'a> Arbitrary<'a> for OsString { fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { <String as Arbitrary>::arbitrary(u).map(From::from) } #[inline] fn size_hint(depth: usize) -> (usize, Option<usize>) { <String as Arbitrary>::size_hint(depth) } } // impl Arbitrary for Box<OsStr> { // fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> { // <OsString as Arbitrary>::arbitrary(u).map(|x| x.into_boxed_osstr()) // // } // }
Version data entries
3 entries across 3 versions & 1 rubygems