libutils-terminal 9.36.26

A custom embedded terminal handler
Documentation
//^
//^ HEAD
//^

//> HEAD -> PROBLEM
use libutils_problem::Problem;

//> HEAD -> LOG
use libutils_log::Log;


//^ 
//^ LAYOUT
//^ 

//> LAYOUT -> STRUCT
pub struct Layout {
    pub problems: Log<Problem> = Log::new()
}

//> LAYOUT -> IMPLEMENTATION
impl Layout {
    #[inline]
    pub fn view(&self) -> String {return self.problems.iter().map(|problem| problem.to_string()).collect::<Vec<String>>().join("\n\n")}
}