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.
Required Methods§
Trait Implementations§
Source§impl<'a, T: Truncateable> FromIterator<Box<dyn Fitable<T> + 'a>> for HBox<'a, T>
impl<'a, T: Truncateable> FromIterator<Box<dyn Fitable<T> + 'a>> for HBox<'a, T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".