Skip to main content

RectExt

Trait RectExt 

Source
pub trait RectExt {
    // Required method
    fn to_kurbo(&self) -> Rect;
}
Expand description

Extension methods for rectangles.

Required Methods§

Source

fn to_kurbo(&self) -> Rect

Convert the rectangle to a kurbo rectangle.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RectExt for Rect

Source§

fn to_kurbo(&self) -> Rect

Implementors§