1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! Exits the program. use std::process::exit; use crate::Matrix; use super::StdFunc; #[derive(Clone)] pub struct Exit; impl StdFunc for Exit { fn eval(&self, _: Vec<Matrix>) -> Matrix { exit(0); } }