[][src]Trait treemap::Mappable

pub trait Mappable {
    fn size(&self) -> f64;
fn bounds(&self) -> &Rect;
fn set_bounds(&mut self, bounds: Rect); }

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

fn size(&self) -> f64

fn bounds(&self) -> &Rect

fn set_bounds(&mut self, bounds: Rect)

Loading content...

Implementations on Foreign Types

impl Mappable for Box<dyn Mappable>[src]

Loading content...

Implementors

impl Mappable for MapItem[src]

Loading content...