pub use crate::fileobject::*;
pub use std::fs::File;
pub struct Image {
pub file_objs: Vec<FileObject>,
}
impl fmt::Display for Image {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let mut output = String::from("Image\n");
for obj in self.file_objs.iter() {
output.push_str(&format!("{} ", *obj));
}
write!(f, "{}", output)
}
}
impl Image {
pub fn new() -> Self {
Self {
file_objs: Vec::<FileObject>::new(),
}
}
}