use {
crate::{encoding::Encoding, ui},
std::fmt,
};
pub trait View: fmt::Display {
fn respond(&mut self, key: ui::Key) -> ui::Action;
fn render(&mut self) -> String;
fn is_tls(&self) -> bool;
fn is_tor(&self) -> bool;
fn url(&self) -> &str;
fn raw(&self) -> &str;
fn set_wide(&mut self, wide: bool);
fn wide(&mut self) -> bool;
fn term_size(&mut self, cols: usize, rows: usize);
fn encoding(&self) -> Encoding {
Encoding::default()
}
}