pub struct SolutionManager<S> { /* private fields */ }Expand description
Stateless service for score analysis.
This is the Rust equivalent of Timefold’s SolutionManager. It provides
stateless operations on solutions without tracking jobs.
§Type Parameters
S- Solution type that implementsAnalyzable
Implementations§
Source§impl<S> SolutionManager<S>
impl<S> SolutionManager<S>
Source§impl<S> SolutionManager<S>
impl<S> SolutionManager<S>
Sourcepub fn analyze(&self, solution: &S) -> ScoreAnalysis<S::Score>
pub fn analyze(&self, solution: &S) -> ScoreAnalysis<S::Score>
Analyzes a solution for constraint violations.
Returns a breakdown of each constraint’s contribution to the score.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for SolutionManager<S>
impl<S> RefUnwindSafe for SolutionManager<S>where
S: RefUnwindSafe,
impl<S> Send for SolutionManager<S>where
S: Send,
impl<S> Sync for SolutionManager<S>where
S: Sync,
impl<S> Unpin for SolutionManager<S>where
S: Unpin,
impl<S> UnwindSafe for SolutionManager<S>where
S: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more