From 369d11587339ce74f8ebc76f2607fe55545eaf7d Mon Sep 17 00:00:00 2001 From: garhve Date: Tue, 20 Dec 2022 11:04:25 +0800 Subject: Build small project following the book --- .../guessing_game/target/doc/rand/trait.Fill.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.Fill.html (limited to 'rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.Fill.html') diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.Fill.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.Fill.html new file mode 100644 index 0000000..240ce68 --- /dev/null +++ b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/trait.Fill.html @@ -0,0 +1,10 @@ +Fill in rand - Rust
pub trait Fill {
+    fn try_fill<R: Rng + ?Sized>(&mut self, rng: &mut R) -> Result<(), Error>;
+}
Expand description

Types which may be filled with random data

+

This trait allows arrays to be efficiently filled with random data.

+

Implementations are expected to be portable across machines unless +clearly documented otherwise (see the +Chapter on Portability).

+

Required Methods

Fill self with random data

+

Implementations on Foreign Types

Implementors

\ No newline at end of file -- cgit v1.2.3-70-g09d2