flow-plots 0.3.1

Package for drawing and interacting with plots in flow cytometry data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::density_calc::RawPixelData;

/// Information about plot rendering progress
#[derive(Clone, Debug)]
pub struct ProgressInfo {
    /// Pixel data for the current progress chunk
    pub pixels: Vec<RawPixelData>,
    /// Progress percentage (0.0 to 100.0)
    pub percent: f32,
}

/// Callback function type for reporting plot rendering progress
///
/// The callback receives progress information and returns a result.
/// Errors from the callback are logged but do not stop rendering.
pub type ProgressCallback =
    Box<dyn FnMut(ProgressInfo) -> Result<(), Box<dyn std::error::Error + Send + Sync>>>;