Lines Matching refs:arbitrary_from
5 fn arbitrary_from<'a, T: Arbitrary<'a>>(input: &'a [u8]) -> T { in arbitrary_from() function
19 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()
146 let gen: Generic<bool> = arbitrary_from(&raw); in generics()
163 let lifetime: OneLifetime = arbitrary_from(&raw); in one_lifetime()
181 let lifetime: TwoLifetimes = arbitrary_from(&raw); in two_lifetimes()