pub struct GoalState {
pub goal: String,
pub iteration: usize,
pub max_iterations: usize,
pub solution: Option<String>,
pub is_complete: bool,
}Expand description
Represents the state of a problem-solving process.
Fields§
§goal: StringThe problem or goal to solve
iteration: usizeCurrent iteration count
max_iterations: usizeMaximum allowed iterations
solution: Option<String>The solution, if found
is_complete: boolWhether the problem-solving process is complete
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GoalState
impl RefUnwindSafe for GoalState
impl Send for GoalState
impl Sync for GoalState
impl Unpin for GoalState
impl UnwindSafe for GoalState
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