pub struct WordleBuilder(/* private fields */);Expand description
Implementations§
Source§impl WordleBuilder
impl WordleBuilder
Sourcepub const fn from(wordle: Wordle, state: SolveState) -> Self
pub const fn from(wordle: Wordle, state: SolveState) -> Self
Create a new builder based on existing constraints
Sourcepub fn never(&mut self, letter: u8) -> &mut Self
pub fn never(&mut self, letter: u8) -> &mut Self
Signal that the given letter is never part of any solution on any position
This corresponds to the darkened result is the game
Sourcepub fn never_all(&mut self, letters: impl AsRef<[u8]>) -> &mut Self
pub fn never_all(&mut self, letters: impl AsRef<[u8]>) -> &mut Self
Signal that any of the given letters are never part of any solution on any position
This is equivalent to calling WordleBuilder::never() on every item of the iterator
Sourcepub fn correct_pos(&mut self, pos: usize, letter: u8) -> &mut Self
pub fn correct_pos(&mut self, pos: usize, letter: u8) -> &mut Self
Signal that the given letter is correct for the given position
This is equivalent to the green result in the game
Trait Implementations§
Source§impl Clone for WordleBuilder
impl Clone for WordleBuilder
Source§fn clone(&self) -> WordleBuilder
fn clone(&self) -> WordleBuilder
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 moreAuto Trait Implementations§
impl Freeze for WordleBuilder
impl RefUnwindSafe for WordleBuilder
impl Send for WordleBuilder
impl Sync for WordleBuilder
impl Unpin for WordleBuilder
impl UnwindSafe for WordleBuilder
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