Trait RectExt

Source
pub trait RectExt {
    // Required methods
    fn touches(&self, other: Self) -> bool;
    fn overlaps_vertically(&self, other: Self) -> bool;
    fn horizontal_distance(&self, other: Self) -> i32;
}

Required Methods§

Source

fn touches(&self, other: Self) -> bool

Source

fn overlaps_vertically(&self, other: Self) -> bool

Source

fn horizontal_distance(&self, other: Self) -> i32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RectExt for Rect

Source§

fn touches(&self, other: Self) -> bool

Source§

fn overlaps_vertically(&self, other: Self) -> bool

Source§

fn horizontal_distance(&self, other: Self) -> i32

Implementors§