Lines Matching refs: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() localVariable
76 fn arbitrary(u: &mut arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
77 Ok(#ident #arbitrary) in gen_arbitrary_method()
80 … fn arbitrary_take_rest(mut u: arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
92 quote!(arbitrary::Arbitrary::arbitrary(u)?) in gen_arbitrary_method()
105 … fn arbitrary(u: &mut arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { in gen_arbitrary_method()
109 … Ok(match (u64::from(<u32 as arbitrary::Arbitrary>::arbitrary(u)?) * #count) >> 32 { in gen_arbitrary_method()
115 … fn arbitrary_take_rest(mut u: arbitrary::Unstructured<#lifetime>) -> arbitrary::Result<Self> { 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()
164 arbitrary::size_hint::and_all(&[ in gen_size_hint_method()
165 #( <#tys as arbitrary::Arbitrary>::size_hint(depth) ),* in gen_size_hint_method()
174 arbitrary::size_hint::recursion_guard(depth, |depth| #hint) in gen_size_hint_method()
186 arbitrary::size_hint::and( in gen_size_hint_method()
187 <u32 as arbitrary::Arbitrary>::size_hint(depth), in gen_size_hint_method()
188 arbitrary::size_hint::recursion_guard(depth, |depth| { in gen_size_hint_method()
189 arbitrary::size_hint::or_all(&[ #( #variants ),* ]) in gen_size_hint_method()