Skip to main content

apply_updates

Function apply_updates 

Source
pub fn apply_updates<T, U>(
    target: &mut T,
    updates: &[U],
) -> Result<UpdateReport, Error>
where T: UpdateTarget<U>,
Expand description

The calculation types used by solver consumers. The full problem vocabulary lives in powerio_prob; these types sit at the facade root so a consumer does not need a second PowerIO dependency to name its boundary. Validate a complete batch, then apply it atomically to target.

If any update is invalid, target is unchanged.