pub struct CubeSolver { /* private fields */ }Expand description
A builder for configuring and executing Rubik’s Cube solving operations.
Implementations§
Source§impl CubeSolver
impl CubeSolver
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new solver builder with default parameters (30 max steps, optimal search enabled).
Sourcepub fn src(self, src: Cube) -> Self
pub fn src(self, src: Cube) -> Self
Sets the source cube state to solve from (defaults to None, representing solved state).
Sourcepub fn tgt(self, tgt: Cube) -> Self
pub fn tgt(self, tgt: Cube) -> Self
Sets the target cube state to solve towards (defaults to None, representing solved state CUBE_ID).
Sourcepub fn good_enough(self, good: i32) -> Self
pub fn good_enough(self, good: i32) -> Self
Sets the acceptable steps (default: 22).
Trait Implementations§
Source§impl Clone for CubeSolver
impl Clone for CubeSolver
Source§impl Debug for CubeSolver
impl Debug for CubeSolver
Auto Trait Implementations§
impl Forget for CubeSolver
impl Freeze for CubeSolver
impl RefUnwindSafe for CubeSolver
impl Send for CubeSolver
impl Sync for CubeSolver
impl Unpin for CubeSolver
impl UnsafeUnpin for CubeSolver
impl UnwindSafe for CubeSolver
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