Trait webrender::util::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

Object Safety§

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§