pub struct UwuBuilder {
pub lowercase: bool,
pub expressions: bool,
pub w_replace: bool,
pub stutter: bool,
pub stutter_chance: u8,
pub emojis: bool,
pub emojis_chance: u8,
}
Expand description
A builder for the Uwu
instance.
Quick start:
uwu_rs::UwuBuilder::new()
.lowercase()
.expressions()
.w_replace()
.stutter(4)
.emojis(1)
.build();
Fields§
§lowercase: bool
Enables the lowercase feature, e.g. ‘Hello’ becomes ‘hello’. Beware that the other features may misbehave if this feature is disabled.
expressions: bool
Enables expression replacement, e.g. ‘what’ becomes ‘nani’.
w_replace: bool
Enables replacement of ‘l’ and ‘r’ with ‘w’, e.g. ‘lovely’ becomes ‘wovewy’.
stutter: bool
Enables stutter, e.g. ‘hello’ becomes ‘h-hello’.
stutter_chance: u8
Specifies how frequent the stutter is. A value of 1 will add stutter to every word, whereas a value of 2 will add stutter every 2 words on average.
emojis: bool
Enables adding emojis after punctuation, e.g. ‘goodbye.’ becomes ‘goodbye. OwO’.
emojis_chance: u8
Specifies how frequently emojis are added. A value of 1 will add emojis after every punctuation, whereas a value of 2 will add emojis every 2 punctuation marks on average.
Implementations§
Source§impl UwuBuilder
impl UwuBuilder
Sourcepub fn lowercase(&mut self) -> &mut Self
pub fn lowercase(&mut self) -> &mut Self
Enables the lowercase feature, e.g. ‘Hello’ becomes ‘hello’.
Sourcepub fn expressions(&mut self) -> &mut Self
pub fn expressions(&mut self) -> &mut Self
Enables expression replacement, e.g. ‘what’ becomes ‘nani’.
Sourcepub fn w_replace(&mut self) -> &mut Self
pub fn w_replace(&mut self) -> &mut Self
Enables replacement of ‘l’ and ‘r’ with ‘w’, e.g. ‘lovely’ becomes ‘wovewy’.
Sourcepub fn stutter(&mut self, chance: u8) -> &mut Self
pub fn stutter(&mut self, chance: u8) -> &mut Self
Enables stutter, e.g. ‘hello’ becomes ‘h-hello’.
Trait Implementations§
Source§impl Clone for UwuBuilder
impl Clone for UwuBuilder
Source§fn clone(&self) -> UwuBuilder
fn clone(&self) -> UwuBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more