/external/rust/crates/arbitrary/src/ |
D | lib.rs | 130 pub trait Arbitrary<'a>: Sized { trait 261 impl<'a> Arbitrary<'a> for () { impl 272 impl<'a> Arbitrary<'a> for bool { 274 Ok(<u8 as Arbitrary<'a>>::arbitrary(u)? & 1 == 1) in arbitrary() 279 <u8 as Arbitrary<'a>>::size_hint(depth) in size_hint() 286 impl<'a> Arbitrary<'a> for $ty { impl 326 impl<'a> Arbitrary<'a> for $ty { impl 328 Ok(Self::from_bits(<$unsigned as Arbitrary<'a>>::arbitrary(u)?)) 333 <$unsigned as Arbitrary<'a>>::size_hint(depth) 345 impl<'a> Arbitrary<'a> for char { [all …]
|
D | unstructured.rs | 11 use crate::{Arbitrary, Error, Result}; 168 A: Arbitrary<'a>, in arbitrary() 170 <A as Arbitrary<'a>>::arbitrary(self) in arbitrary() 214 ElementType: Arbitrary<'a>, in arbitrary_len() 217 let (lower, upper) = <ElementType as Arbitrary>::size_hint(0); in arbitrary_len() 493 pub fn arbitrary_iter<'b, ElementType: Arbitrary<'a>>( in arbitrary_iter() 507 pub fn arbitrary_take_rest_iter<ElementType: Arbitrary<'a>>( in arbitrary_take_rest_iter() 529 impl<'a, 'b, ElementType: Arbitrary<'a>> Iterator for ArbitraryIter<'a, 'b, ElementType> { 534 Some(Arbitrary::arbitrary(self.u)) in next() 548 impl<'a, ElementType: Arbitrary<'a>> Iterator for ArbitraryTakeRestIter<'a, ElementType> { [all …]
|
/external/rust/crates/arbitrary/tests/ |
D | derive.rs | 5 fn arbitrary_from<'a, T: Arbitrary<'a>>(input: &'a [u8]) -> T { in arbitrary_from() 10 #[derive(Copy, Clone, Debug, Eq, PartialEq, Arbitrary)] 24 assert_eq!((3, Some(3)), <Rgb as Arbitrary>::size_hint(0)); in struct_with_named_fields() 27 #[derive(Copy, Clone, Debug, Arbitrary)] 40 assert_eq!((2, Some(2)), <MyTupleStruct as Arbitrary>::size_hint(0)); in tuple_struct() 43 #[derive(Clone, Debug, Arbitrary)] 45 #[derive(Clone, Debug, Arbitrary)] 63 #[derive(Copy, Clone, Debug, Arbitrary)] 113 assert_eq!((4, Some(17)), <MyEnum as Arbitrary>::size_hint(0)); in derive_enum() 116 #[derive(Arbitrary, Debug)] [all …]
|
D | path.rs | 5 #[derive(arbitrary::Arbitrary, Clone, Debug)] 11 #[derive(arbitrary::Arbitrary, Clone, Debug)] 14 #[derive(arbitrary::Arbitrary, Clone, Debug)] 17 #[derive(arbitrary::Arbitrary, Clone, Debug)] 23 #[derive(arbitrary::Arbitrary, Clone, Debug)] 26 #[derive(arbitrary::Arbitrary, Debug)]
|
/external/rust/crates/arbitrary/ |
D | CHANGELOG.md | 46 * The `Arbitrary` trait is now implemented for `&[u8]`. [#67](https://github.com/rust-fuzz/arbitrar… 61 * The `Arbitrary` trait is now implemented for `&str`. [#63](https://github.com/rust-fuzz/arbitrary… 65 …Arbitrary` trait now has a lifetime parameter, allowing `Arbitrary` implementations that borrow fr… 69 * The `shrink` method on the `Arbitrary` trait has been removed. 71 …Arbitrary` type constructed from those raw bytes, has the best efficiency-to-maintenance ratio. To… 89 * The `Arbitrary` implementation for `std::time::Duration` should now be faster 121 * Implement `Arbitrary` for zero length arrays. 122 * Implement `Arbitrary` for `Range` and `RangeInclusive`. 133 `#[derive(arbitrary::Arbitrary)]` rather than like `#[derive(Arbitrary)]`). 143 `#[derive(arbitrary::Arbitrary)]` rather than like `#[derive(Arbitrary)]`). [all …]
|
D | README.md | 3 <h1><code>Arbitrary</code></h1> 13 The `Arbitrary` crate lets you construct arbitrary instance of a type. 29 represent RGB colors. You might want to implement `Arbitrary` for `Rgb` so that 34 ### Automatically Deriving `Arbitrary` 36 Automatically deriving the `Arbitrary` trait is the recommended way to implement 37 `Arbitrary` for your types. 39 Automatically deriving `Arbitrary` requires you to enable the `"derive"` cargo 49 And then you can simply add `#[derive(Arbitrary)]` annotations to your types: 54 use arbitrary::Arbitrary; 56 #[derive(Arbitrary)] [all …]
|
D | Cargo.toml.orig | 27 # Turn this feature on to enable support for `#[derive(Arbitrary)]`.
|
/external/rust/crates/derive_arbitrary/src/ |
D | lib.rs | 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() [all …]
|
/external/rust/crates/weak-table/tests/ |
D | weak_key_hash_map.rs | 7 use quickcheck::{Arbitrary, Gen, quickcheck}; 140 impl<K: Arbitrary, V: Arbitrary> Arbitrary for Cmd<K, V> { 155 impl<K: Arbitrary, V: Arbitrary> Arbitrary for Script<K, V> {
|
/external/rust/crates/derive_arbitrary/ |
D | README.md | 1 # `#[derive(Arbitrary)]` 3 This crate implements support for automatically deriving [the `Arbitrary` 4 trait](https://docs.rs/arbitrary/*/arbitrary/trait.Arbitrary.html).
|
/external/rust/crates/libfuzzer-sys/src/ |
D | lib.rs | 144 use libfuzzer_sys::arbitrary::{Arbitrary, Unstructured}; 152 if bytes.len() < <$dty as Arbitrary>::size_hint(0).0 { 157 let data = <$dty as Arbitrary>::arbitrary_take_rest(u);
|
/external/rust/crates/arbitrary/examples/ |
D | derive_enum.rs | 5 use arbitrary::{Arbitrary, Unstructured}; 7 #[derive(Arbitrary, Debug)]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_RemoteFusedGraphExecute.pbtxt | 6 Arbitrary number of tensors with arbitrary data types 12 Arbitrary number of tensors with arbitrary data types
|
/external/rust/crates/libfuzzer-sys/ |
D | CHANGELOG.md | 85 time exploring all the ways that an `Arbitrary` implementation could fail to 124 * You can enable support for `#[derive(Arbitrary)]` with the
|
/external/python/cpython3/Lib/test/ |
D | tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt | 5 # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
|
D | tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt | 6 # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
|
D | tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt | 7 # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
|
D | tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt | 7 # Arbitrary encoded utf-8 text (stolen from test_doctest2.py).
|
/external/parameter-framework/upstream/cpack/ |
D | CMakeLists.txt | 40 # Arbitrary GUID needed by the installer on windows to abort 44 # Arbitrary GUID needed by the installer on windows to replace
|
/external/perfetto/protos/perfetto/trace/ |
D | test_event.proto | 23 // Arbitrary string used in tests.
|
/external/libwebsockets/READMEs/ |
D | README.lws_system.md | 107 |`LWS_SYSBLOB_TYPE_DEVICE_SERIAL`|Arbitrary device serial number| 108 |`LWS_SYSBLOB_TYPE_DEVICE_FW_VERSION`|Arbitrary firmware version| 109 |`LWS_SYSBLOB_TYPE_DEVICE_TYPE`|Arbitrary Device Type identifier|
|
/external/rust/crates/itertools/tests/ |
D | quick.rs | 36 trait HintKind: Copy + Send + qc::Arbitrary { 50 impl qc::Arbitrary for Exact { 74 impl qc::Arbitrary for Inexact { 169 impl<T, HK> qc::Arbitrary for Iter<T, HK> 170 where T: qc::Arbitrary, 224 impl<HK> qc::Arbitrary for ShiftRange<HK> 232 let range_start = qc::Arbitrary::arbitrary(g); in arbitrary() 237 let hint_kind = qc::Arbitrary::arbitrary(g); in arbitrary() 1111 impl qc::Arbitrary for Val {
|
/external/tensorflow/tensorflow/core/framework/ |
D | types.proto | 39 DT_VARIANT = 21; // Arbitrary C++ data types
|
/external/rust/crates/grpcio-sys/grpc/src/proto/grpc/binary_log/v1alpha/ |
D | log.proto | 54 // Arbitrary key/value pairs specified by the user that are not sent over
|
/external/grpc-grpc/src/proto/grpc/binary_log/v1alpha/ |
D | log.proto | 54 // Arbitrary key/value pairs specified by the user that are not sent over
|