RsBundle  Diff

Differences From Artifact [4a2f396f31]:

  • File src/solver/sync.rs — part of check-in [42e5b82a08] at 2022-04-13 09:37:02 on branch trunk — Simplify handling of user errors by removing `source`. Because the user provided error may be any type and the `source` property of `std::error::Error` requires the source to be `dyn Error + 'static` we must make a compromise. This means we do not implement `source` for user errors. The user may extract the source directly from the solver error struct. (user: fifr size: 29175)

To Artifact [3a8ff7257b]:

  • File src/solver/sync.rs — part of check-in [2b5fd5a3aa] at 2022-05-09 12:56:03 on branch trunk — sync: add `into_problem` method (user: fifr size: 29303)

444
445
446
447
448
449
450





451
452
453
454
455
456
457
        self.threadpool = threadpool;
    }

    /// Return the current problem associated with the solver.
    pub fn problem(&self) -> &P {
        &self.problem
    }






    /// Initialize the solver.
    ///
    /// This will reset the internal data structures so that a new fresh
    /// solution process can be started.
    ///
    /// It will also setup all worker processes.







>
>
>
>
>







444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
        self.threadpool = threadpool;
    }

    /// Return the current problem associated with the solver.
    pub fn problem(&self) -> &P {
        &self.problem
    }

    /// Return the current problem associated with the solver.
    pub fn into_problem(self) -> P {
        self.problem
    }

    /// Initialize the solver.
    ///
    /// This will reset the internal data structures so that a new fresh
    /// solution process can be started.
    ///
    /// It will also setup all worker processes.