gnuplot_wrapper/commands/
break_command.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::{command::Command, script::Script};

/// http://gnuplot.info/docs_5.5/loc6509.html
pub struct Break {}

impl Break {
    pub fn new() -> Self {
        return Break {};
    }
}

impl Command for Break {
    fn to_raw(&self) -> String {
        return "break".to_owned();
    }
}

impl Script {
    pub fn break_command(&mut self) {
        self.add_command(Break::new());
    }    
}