File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
#[ cfg( feature = "arbitrary" ) ]
2
+ #[ cfg_attr( docsrs, doc( cfg( feature = "arbitrary" ) ) ) ]
2
3
mod impl_arbitrary {
3
4
use crate :: { IndexMap , IndexSet } ;
4
5
use arbitrary:: { Arbitrary , Result , Unstructured } ;
@@ -35,6 +36,7 @@ mod impl_arbitrary {
35
36
}
36
37
37
38
#[ cfg( feature = "quickcheck" ) ]
39
+ #[ cfg_attr( docsrs, doc( cfg( feature = "quickcheck" ) ) ) ]
38
40
mod impl_quickcheck {
39
41
use crate :: { IndexMap , IndexSet } ;
40
42
use alloc:: boxed:: Box ;
Original file line number Diff line number Diff line change 40
40
//! to [`IndexMap`] and [`IndexSet`]. Alternative implementations for
41
41
//! (de)serializing [`IndexMap`] as an ordered sequence are available in the
42
42
//! [`map::serde_seq`] module.
43
+ //! * `arbitrary`: Adds implementations for the [`arbitrary::Arbitrary`] trait
44
+ //! to [`IndexMap`] and [`IndexSet`].
45
+ //! * `quickcheck`: Adds implementations for the [`quickcheck::Arbitrary`] trait
46
+ //! to [`IndexMap`] and [`IndexSet`].
43
47
//!
44
48
//! _Note: only the `std` feature is enabled by default._
45
49
//!
46
50
//! [feature flags]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
47
51
//! [`no_std`]: #no-standard-library-targets
48
52
//! [`Serialize`]: `::serde::Serialize`
49
53
//! [`Deserialize`]: `::serde::Deserialize`
54
+ //! [`arbitrary::Arbitrary`]: `::arbitrary::Arbitrary`
55
+ //! [`quickcheck::Arbitrary`]: `::quickcheck::Arbitrary`
50
56
//!
51
57
//! ### Alternate Hashers
52
58
//!
You can’t perform that action at this time.
0 commit comments