Skip to main content

RectExt

Trait RectExt 

Source
pub trait RectExt {
    // Required method
    fn enveloping(&self, other: &Rectangle) -> Rectangle;
}
Expand description

The trait that describes the extension methods.

Required Methods§

Source

fn enveloping(&self, other: &Rectangle) -> Rectangle

Return the bounding Rectangle that encompasses both Rectangles

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 Rectangle

Source§

fn enveloping(&self, other: &Rectangle) -> Rectangle

Implementors§