gnuplotter_core 0.2.3-alpha

Dependency for gnuplotter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::VecDeque;
use crate::prelude::*;

pub mod vector_data_source;

pub trait DataSource {
    fn data(&self) -> & Vec<(i32, f64)>;
}

impl GnuCommandFactory for dyn DataSource {
    fn as_commands(&self) -> GnuCommandFactoryResult {
        Ok(
            vec![
                GnuCommand::new("some command")
            ].into()
        )
    }
}