[][src]Trait embedded_text::utils::rect_ext::RectExt

pub trait RectExt {
    pub fn size(self) -> Size;
pub fn into_well_formed(self) -> Rectangle; }

Rectangle extensions

Required methods

pub fn size(self) -> Size[src]

Returns the (correct) size of a Rectangle.

pub fn into_well_formed(self) -> Rectangle[src]

Sorts the coordinates of a Rectangle so that top < bottom and left < right.

Loading content...

Implementations on Foreign Types

impl RectExt for Rectangle[src]

Loading content...

Implementors

Loading content...