usecrate::compute::computation::ComputationProgress;usecrate::compute::state::State;/// A trait for objects that can perform a computation.
////// Implementors of this trait represent a unit of work that can be executed
/// by the compute engine.
pubtraitComputable{/// Performs the computation.
////// # Arguments
/// * `state` - The current state of the computation.
/// * `progress` - A mutable reference to update the progress.
////// # Returns
/// * `Result<(), String>` - `Ok(())` if successful, or `Err(String)` with an error message.
////// # Errors
/// Returns an error string if the computation fails.
fncompute(&self,
state:&mut State,
progress:&mut ComputationProgress,
)->Result<(), String>;}