rura 1.6.0

Interactive TUI pipeline editor built for rapid iteration
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::sync::Arc;

#[derive(PartialEq, Debug, Clone)]
pub enum Output {
    Ok(Arc<[u8]>),
    Err(Arc<[u8]>, Option<i32>),
}

#[cfg(test)]
impl Output {
    pub fn ok_str(str: &str) -> Self {
        Output::Ok(str.as_bytes().into())
    }

    pub fn err_str(str: &str) -> Self {
        Output::Err(str.as_bytes().into(), Some(1))
    }
}