Skip to main content

IntRectExt

Trait IntRectExt 

Source
pub trait IntRectExt {
    // Required method
    fn to_screen_int_rect(&self) -> Option<ScreenIntRect>;
}

Required Methods§

Source

fn to_screen_int_rect(&self) -> Option<ScreenIntRect>

Converts into ScreenIntRect.

§Checks
  • x >= 0
  • y >= 0

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§