Debian Codegraph @

debian/missing-sources/rand/src/prelude.rs

raw symbols SCIP
1 // Copyright 2018 Developers of the Rand project.
2 //
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6 // option. This file may not be copied, modified, or distributed
7 // except according to those terms.
8
9 //! Convenience re-export of common members
10 //!
11 //! Like the standard library's prelude, this module simplifies importing of
12 //! common items. Unlike the standard prelude, the contents of this module must
13 //! be imported manually:
14 //!
15 //! ```
16 //! use rand::prelude::*;
17 //! # let mut r = StdRng::from_rng(&mut rand::rng());
18 //! # let _: f32 = r.random();
19 //! ```
20
21 #[doc(no_inline)]
22 pub use craterust-analyzer cargo rand 0.9.2 crate/::distrrust-analyzer cargo rand 0.9.2 distr/::Distributionrust-analyzer cargo rand 0.9.2 distr/distribution/Distribution#;
23 #[cfg(feature = "small_rng")]
24 #[doc(no_inline)]
25 pub use craterust-analyzer cargo rand 0.9.2 crate/::rngsrust-analyzer cargo rand 0.9.2 rngs/::SmallRngrust-analyzer cargo rand 0.9.2 rngs/small/SmallRng#;
26 #[cfg(feature = "std_rng")]
27 #[doc(no_inline)]
28 pub use craterust-analyzer cargo rand 0.9.2 crate/::rngsrust-analyzer cargo rand 0.9.2 rngs/::StdRngrust-analyzer cargo rand 0.9.2 rngs/std/StdRng#;
29 #[doc(no_inline)]
30 #[cfg(feature = "thread_rng")]
31 pub use craterust-analyzer cargo rand 0.9.2 crate/::rngsrust-analyzer cargo rand 0.9.2 rngs/::ThreadRngrust-analyzer cargo rand 0.9.2 rngs/thread/ThreadRng#;
32 #[doc(no_inline)]
33 pub use craterust-analyzer cargo rand 0.9.2 crate/::seqrust-analyzer cargo rand 0.9.2 seq/::{IndexedMutRandomrust-analyzer cargo rand 0.9.2 seq/slice/IndexedMutRandom#, IndexedRandomrust-analyzer cargo rand 0.9.2 seq/slice/IndexedRandom#, IteratorRandomrust-analyzer cargo rand 0.9.2 seq/iterator/IteratorRandom#, SliceRandomrust-analyzer cargo rand 0.9.2 seq/slice/SliceRandom#};
34 #[doc(no_inline)]
35 pub use craterust-analyzer cargo rand 0.9.2 crate/::{CryptoRngrust-analyzer cargo rand_core 0.9.5 CryptoRng#, Rngrust-analyzer cargo rand 0.9.2 rng/Rng#, RngCorerust-analyzer cargo rand_core 0.9.5 RngCore#, SeedableRngrust-analyzer cargo rand_core 0.9.5 SeedableRng#};