use crate::report::Issue;
pub struct Layout {
pub logs: Vec<Issue>
}
impl const Default for Layout {
fn default() -> Self {return Layout {
logs: Vec::new()
}}
}
impl Layout {
#[inline]
pub fn view(&self) -> String {return self.logs.iter().map(|issue| issue.to_string()).collect::<Vec<String>>().join("\n\n")}
}