gnuplot_wrapper/commands/break_command.rs
1use crate::{command::Command, script::Script};
2
3/// http://gnuplot.info/docs_5.5/loc6509.html
4pub struct Break {}
5
6impl Break {
7 pub fn new() -> Self {
8 return Break {};
9 }
10}
11
12impl Command for Break {
13 fn to_raw(&self) -> String {
14 return "break".to_owned();
15 }
16}
17
18impl Script {
19 pub fn break_command(&mut self) {
20 self.add_command(Break::new());
21 }
22}