blob: 077c402e0fc0a2570ad527aea1e6c250c5bb78c0 [file] [log] [blame]
use egui::Ui;
use crate::app_state::AppState;
pub trait RenderView {
fn render(&self, ui: &mut Ui, state: &mut AppState) -> anyhow::Result<()>;
fn title(&self) -> String;
}
impl PartialEq for dyn RenderView {
fn eq(&self, other: &Self) -> bool {
self.title() == other.title()
}
}