pub trait TruncationStrategy<T>where
T: WidthSliceable + HasWidth,{
// Required method
fn truncate(&self, target: &T, width: usize) -> Option<T::Output>;
}Expand description
Functionality for truncating objects using some strategy.
pub trait TruncationStrategy<T>where
T: WidthSliceable + HasWidth,{
// Required method
fn truncate(&self, target: &T, width: usize) -> Option<T::Output>;
}Functionality for truncating objects using some strategy.