pub trait Fitable<T: Truncateable>: HasWidth {
// Required method
fn truncate(&self, width: usize) -> Option<T>;
}Expand description
Widgets that can be truncated to fit in a provided width.
pub trait Fitable<T: Truncateable>: HasWidth {
// Required method
fn truncate(&self, width: usize) -> Option<T>;
}Widgets that can be truncated to fit in a provided width.