pub trait Mappable {
// Required methods
fn size(&self) -> f64;
fn bounds(&self) -> &Rect;
fn set_bounds(&mut self, bounds: Rect);
}Expand description
Interface representing an object that can be placed in a treemap layout.
§Properties
- size: corresponds to area in map.
- bounds: the bounding rectangle of the item in the map.