1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//!
//! Provides 3 functions to return mock hipster data.
//!
//! # Examples
//!
//! ```rust
//! use mockd::hipster;
//!
//! let data = hipster::word(); // word: fingerstache
//! let data = hipster::sentence(12); // sentence: Itaque aliquid id ex repudiandae adipisci quibusdam excepturi deleniti qui alias animi.
//! let data = hipster::paragraph(3, 4, 40, " ".to_string()); // paragraph: Voluptas minima delectus voluptatibus earum rerum accusamus consequatur sunt....
//! ```
//! # Feature
//!
//! Requires the "hipster" feature.
//!
use cratemisc;
use cratewords;
pub
/// Generate a random hipster word from the word dictionary.
///
/// # Example
///
/// ```rust
/// let word = mockd::hipster::word();
///
/// println!("Hipster word: {}", word);
/// ```
///
/// # Feature
///
/// Requires the "hipster" feature.
///
/// Generate a random sentence containing the given number of words.
///
/// # Example
///
/// ```rust
/// let sentence = mockd::hipster::sentence(5);
///
/// println!("Hipster sentence: {}", sentence);
/// ```
///
/// # Feature
///
/// Requires the "hipster" feature.
///
/// Generate a random paragraph containing a number of sentences of words.
///
/// # Example
///
/// ```rust
/// let paragraph = mockd::hipster::paragraph(1,5,5,". ".to_string());
///
/// println!("Hipster word: {}", paragraph);
/// ```
///
/// # Feature
///
/// Requires the "hipster" feature.
///