pub trait ViewSize<T>where T: ?Sized,{ fn size(&mut self, data: &T) -> Size; }
Report the size of a T when rendered.
T
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.