pub trait ViewSize<T>where
T: ?Sized,{
fn size(&mut self, data: &T) -> Size;
}
Expand description
Report the size of a T
when rendered.
Returns the size in cells of the rectangle containing a ui element.
This allows for the implementation of decorator ui components that
render a border around some inner element.