-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
need a function in ffi in the form of
pub fn solve_with_parameters_and_handler(
params: &proto::SatParameters,
handler: impl FnMut(&proto::CpSolverResponse) -> std::ops::ControlFlow<()>,
) -> proto::CpSolverResponse;
Must check if FnMut is possible (CP-SAT must guarantee that the handler will not be called in parallel in any case), else we will use a Fn
.
It must be SAFE! panic safe in particular.
need also the corresponding function in the builder.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request