Bounded

Trait Bounded 

pub trait Bounded: Debug {
    // Required methods
    fn bounds(&self) -> Rectangle;
    fn visible_bounds(&self) -> Option<Rectangle>;
}
Expand description

A bounded type has both layout bounds and visible bounds.

This trait lets us write generic code over the Output of a Selector.

Required Methods§

fn bounds(&self) -> Rectangle

Returns the layout bounds.

fn visible_bounds(&self) -> Option<Rectangle>

Returns the visible bounds, in screen coordinates.

Implementors§

§

impl Bounded for Target

§

impl Bounded for Text