Mappable

Trait Mappable 

Source
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.

Required Methods§

Source

fn size(&self) -> f64

Source

fn bounds(&self) -> &Rect

Source

fn set_bounds(&mut self, bounds: Rect)

Trait Implementations§

Source§

impl Mappable for Box<dyn Mappable>

Source§

fn size(&self) -> f64

Source§

fn bounds(&self) -> &Rect

Source§

fn set_bounds(&mut self, bounds: Rect)

Implementations on Foreign Types§

Source§

impl Mappable for Box<dyn Mappable>

Source§

fn size(&self) -> f64

Source§

fn bounds(&self) -> &Rect

Source§

fn set_bounds(&mut self, bounds: Rect)

Implementors§