[−][src]Struct friendly_zoo::Zoo
A friendly zoo.
The zoo can generate animals. Each animal can have between 0
and u32::MAX
adjectives, and a
race. The number of adjectives and the delimiter between the adjectives and the animal are set
during instantiation. For one adjective, and _
as the delimiter, use the Default
implementation of Zoo
.
Example
Just generate a friendly animal name:
use friendly_zoo::Zoo; let animal = Zoo::default().generate(); println!("{}", animal);
Generate a really fancy animal:
use friendly_zoo::Zoo; let animal = Zoo::new('$', 6).generate(); println!("{}", animal);
Implementations
impl Zoo
[src]
pub fn new(delimiter: char, number_of_adjectives: u8) -> Self
[src]
pub fn generate(&self) -> String
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Zoo
impl Send for Zoo
impl Sync for Zoo
impl Unpin for Zoo
impl UnwindSafe for Zoo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,