webrender::util

Trait RectHelpers

Source
pub trait RectHelpers<U>
where Self: Sized,
{ // Required methods fn from_floats(x0: f32, y0: f32, x1: f32, y1: f32) -> Self; fn snap(&self) -> Self; }

Required Methods§

Source

fn from_floats(x0: f32, y0: f32, x1: f32, y1: f32) -> Self

Source

fn snap(&self) -> Self

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<U> RectHelpers<U> for Box2D<f32, U>

Source§

fn from_floats(x0: f32, y0: f32, x1: f32, y1: f32) -> Self

Source§

fn snap(&self) -> Self

Source§

impl<U> RectHelpers<U> for Rect<f32, U>

Source§

fn from_floats(x0: f32, y0: f32, x1: f32, y1: f32) -> Self

Source§

fn snap(&self) -> Self

Implementors§