1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
use std::path; use super::Rect; #[derive(Debug, Clone)] pub struct PreviewArea { pub file_preview_path: path::PathBuf, pub preview_area: Rect, } impl PreviewArea { pub fn new(file_preview_path: path::PathBuf, preview_area: Rect) -> Self { Self { file_preview_path, preview_area, } } }