• Home
  • Raw
  • Download

Lines Matching full:unstructured

31 pub mod unstructured;  module
33 pub use unstructured::Unstructured;
57 /// Generate arbitrary structured values from raw, unstructured data.
61 /// raw, unstructured bytes provided by a fuzzer.
105 /// [`Unstructured`][crate::Unstructured] type helps you with these tasks.
114 /// use arbitrary::{Arbitrary, Result, Unstructured};
120 /// fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
137 /// Generate an arbitrary value of `Self` from the given unstructured data.
141 /// raw data in an `Unstructured`, and then you can call `<MyType as
143 /// from that unstructured data.
157 /// use arbitrary::{Arbitrary, Unstructured};
168 /// // Wrap that raw data in an `Unstructured`.
169 /// let mut unstructured = Unstructured::new(raw_data);
172 /// if let Ok(value) = MyType::arbitrary(&mut unstructured) {
179 /// See also the documentation for [`Unstructured`][crate::Unstructured].
180 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>; in arbitrary()
183 /// unstructured data.
188 /// [`Unstructured`][crate::Unstructured].
189 fn arbitrary_take_rest(mut u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
193 /// Get a size hint for how many bytes out of an `Unstructured` this type
237 /// use arbitrary::{Arbitrary, Unstructured, size_hint};
251 /// fn arbitrary(u: &mut Unstructured) -> arbitrary::Result<Self> {
284 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
295 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
309 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
349 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
368 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
392 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
403 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
414 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
436 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
513 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
530 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
548 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
574 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
579 fn arbitrary_take_rest(mut u: Unstructured<'a>) -> Result<Self> {
640 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
645 fn arbitrary_take_rest(mut u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
662 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
667 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
678 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
682 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
693 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
697 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
708 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
712 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
723 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
742 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
746 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
759 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
763 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
776 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
780 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
791 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
795 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
806 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
810 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
825 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
838 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
857 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
869 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
873 fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self> { in arbitrary_take_rest()
884 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
898 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
909 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
920 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
931 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
942 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
953 // fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> {
959 // fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self> {
966 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
977 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
988 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
999 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1010 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1021 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1032 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1043 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1054 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1065 fn arbitrary(_: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1076 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1089 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> {
1118 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1129 fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self> { in arbitrary()
1145 fn checked_arbitrary<'a, T: Arbitrary<'a>>(u: &mut Unstructured<'a>) -> Result<T> { in checked_arbitrary()
1175 fn checked_arbitrary_take_rest<'a, T: Arbitrary<'a>>(u: Unstructured<'a>) -> Result<T> { in checked_arbitrary_take_rest()
1196 let mut rb = Unstructured::new(&x); in finite_buffer_fill_buffer()
1209 let mut buf = Unstructured::new(&x); in arbitrary_for_integers()
1218 let mut buf = Unstructured::new(&x); in arbitrary_for_bytes()
1227 let buf = Unstructured::new(&x); in arbitrary_take_rest_for_bytes()
1239 checked_arbitrary::<&[u8]>(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1243 checked_arbitrary::<Vec<u8>>(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1247 checked_arbitrary::<Vec<u32>>(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1251 checked_arbitrary::<String>(&mut Unstructured::new(&x)).unwrap(), in arbitrary_collection()
1260 checked_arbitrary_take_rest::<&[u8]>(Unstructured::new(&x)).unwrap(), in arbitrary_take_rest()
1264 checked_arbitrary_take_rest::<Vec<u8>>(Unstructured::new(&x)).unwrap(), in arbitrary_take_rest()
1268 checked_arbitrary_take_rest::<Vec<u32>>(Unstructured::new(&x)).unwrap(), in arbitrary_take_rest()
1272 checked_arbitrary_take_rest::<String>(Unstructured::new(&x)).unwrap(), in arbitrary_take_rest()
1277 checked_arbitrary_take_rest::<&[u8]>(Unstructured::new(&[])).unwrap(), in arbitrary_take_rest()
1281 checked_arbitrary_take_rest::<Vec<u8>>(Unstructured::new(&[])).unwrap(), in arbitrary_take_rest()