Lines Matching refs:Arbitrary
9 #[proc_macro_derive(Arbitrary)]
32 …impl #impl_generics arbitrary::Arbitrary<#lifetime_without_bounds> for #name #ty_generics #where_c… in derive_arbitrary()
64 .push(parse_quote!(arbitrary::Arbitrary<#lifetime>)); in add_trait_bounds()
73 let arbitrary = construct(fields, |_, _| quote!(arbitrary::Arbitrary::arbitrary(u)?)); in gen_arbitrary_method()
92 quote!(arbitrary::Arbitrary::arbitrary(u)?) in gen_arbitrary_method()
109 … Ok(match (u64::from(<u32 as arbitrary::Arbitrary>::arbitrary(u)?) * #count) >> 32 { in gen_arbitrary_method()
119 … Ok(match (u64::from(<u32 as arbitrary::Arbitrary>::arbitrary(&mut u)?) * #count) >> 32 { in gen_arbitrary_method()
153 quote! { arbitrary::Arbitrary::arbitrary_take_rest(u)? } in construct_take_rest()
155 quote! { arbitrary::Arbitrary::arbitrary(&mut u)? } in construct_take_rest()
165 #( <#tys as arbitrary::Arbitrary>::size_hint(depth) ),* in gen_size_hint_method()
187 <u32 as arbitrary::Arbitrary>::size_hint(depth), in gen_size_hint_method()