pub struct HaikuGenerator { /* private fields */ }
Implementations§
Source§impl HaikuGenerator
impl HaikuGenerator
pub fn new(words: Vec<String>) -> HaikuGenerator
pub fn generate_haiku(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for HaikuGenerator
impl Clone for HaikuGenerator
Source§fn clone(&self) -> HaikuGenerator
fn clone(&self) -> HaikuGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl PartialEq for HaikuGenerator
impl PartialEq for HaikuGenerator
impl StructuralPartialEq for HaikuGenerator
Auto Trait Implementations§
impl Freeze for HaikuGenerator
impl RefUnwindSafe for HaikuGenerator
impl Send for HaikuGenerator
impl Sync for HaikuGenerator
impl Unpin for HaikuGenerator
impl UnwindSafe for HaikuGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more