Searched refs:arbitrary_from (Results 1 – 1 of 1) sorted by relevance
5 fn arbitrary_from<'a, T: Arbitrary<'a>>(input: &'a [u8]) -> T { in arbitrary_from() function19 let rgb: Rgb = arbitrary_from(&[4, 5, 6]); in struct_with_named_fields()32 let s: MyTupleStruct = arbitrary_from(&[43, 42]); in tuple_struct()36 let s: MyTupleStruct = arbitrary_from(&[42, 43]); in tuple_struct()90 let e: MyEnum = arbitrary_from(&raw); in derive_enum()98 assert_eq!(a, arbitrary_from(&raw[4..5])); in derive_enum()99 assert_eq!(b, arbitrary_from(&raw[5..])); in derive_enum()103 assert_eq!(a, arbitrary_from(&raw[4..8])); in derive_enum()104 assert_eq!(b, arbitrary_from(&raw[8..])); in derive_enum()128 let _rec: RecursiveTree = arbitrary_from(&raw); in recursive()[all …]