You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
386 B
Rust

#[derive(Copy, Clone, PartialEq, Debug)]
pub enum Status
{
Safe,
Unsafe,
Unknown,
}
#[derive(Clone, Debug)]
pub struct Report
{
levels: Vec<i32>,
status: Status,
}
impl Report
{
pub fn new(lvls: Vec<i32>) -> Report
{
Report { levels: lvls , status: Status::Unknown }
}
pub fn analyze(self: &mut Report) -> Status
{
// TODO: Report::analyze()
Status::Unknown
}
}