Lines Matching refs:arbitrary
171 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>; in arbitrary() method
179 Self::arbitrary(&mut u) in arbitrary_take_rest()
262 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
273 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
274 Ok(<u8 as Arbitrary<'a>>::arbitrary(u)? & 1 == 1) in arbitrary()
287 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
327 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
328 Ok(Self::from_bits(<$unsigned as Arbitrary<'a>>::arbitrary(u)?))
346 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
351 let mut c = <u32 as Arbitrary<'a>>::arbitrary(u)? % CHAR_END; in arbitrary()
369 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
370 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
380 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
381 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
391 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
392 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
413 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
414 let value: $value_ty = Arbitrary::arbitrary(u)?;
490 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
492 <u64 as Arbitrary>::arbitrary(u)?, in arbitrary()
507 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
508 Ok(if <bool as Arbitrary<'a>>::arbitrary(u)? { in arbitrary()
509 Some(Arbitrary::arbitrary(u)?) in arbitrary()
525 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
526 Ok(if <bool as Arbitrary<'a>>::arbitrary(u)? { in arbitrary()
527 Ok(<A as Arbitrary>::arbitrary(u)?) in arbitrary()
529 Err(<B as Arbitrary>::arbitrary(u)?) in arbitrary()
551 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
552 Ok(($($xs::arbitrary(u)?,)* Arbitrary::arbitrary(u)?,))
557 $(let $xs = $xs::arbitrary(&mut u)?;)*
579 fn arbitrary(u: &mut Unstructured<'a>) -> Result<[T; $n]> {
581 Arbitrary::arbitrary(u)?,
582 $(<$ts as Arbitrary>::arbitrary(u)?),*
588 $(let $as = $ts::arbitrary(&mut u)?;)*
609 fn arbitrary(_: &mut Unstructured<'a>) -> Result<[T; 0]> { in arbitrary() method
630 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
646 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
661 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
676 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
691 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
708 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
723 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
738 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
753 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
772 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() function
773 Arbitrary::arbitrary(u).map(Cow::Owned) in arbitrary()
785 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
818 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
819 <&str as Arbitrary>::arbitrary(u).map(Into::into) in arbitrary()
833 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
834 <Vec<u8> as Arbitrary>::arbitrary(u).map(|mut x| { in arbitrary()
847 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
848 <String as Arbitrary>::arbitrary(u).map(From::from) in arbitrary()
858 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
859 <OsString as Arbitrary>::arbitrary(u).map(From::from) in arbitrary()
869 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
870 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
880 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
881 <Vec<A> as Arbitrary>::arbitrary(u).map(|x| x.into_boxed_slice()) in arbitrary()
891 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
892 <String as Arbitrary>::arbitrary(u).map(|x| x.into_boxed_str()) in arbitrary()
915 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
916 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
926 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
927 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
937 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
938 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
948 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
949 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
959 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
960 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
970 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
971 Arbitrary::arbitrary(u).map(Self::new) in arbitrary()
981 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
992 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
1003 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary() method
1004 Arbitrary::arbitrary(u).map(::std::num::Wrapping) in arbitrary()
1035 let actual = i32::arbitrary(&mut buf).unwrap(); in arbitrary_for_integers()
1044 let actual = <&[u8] as Arbitrary>::arbitrary(&mut buf).unwrap(); in arbitrary_for_bytes()
1063 Vec::<u8>::arbitrary(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1067 Vec::<u32>::arbitrary(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1071 String::arbitrary(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()