pub trait Size2d: Clone + Copy {
    fn width(&self) -> usize;
fn height(&self) -> usize; fn as_uvec2(&self) -> UVec2 { ... }
fn len(&self) -> usize { ... }
fn as_vec2(&self) -> Vec2 { ... }
fn as_ivec2(&self) -> IVec2 { ... }
fn to_array(&self) -> [usize; 2] { ... } }
Expand description

A trait for mixing of the different types representing a 2d size.

Required methods

Provided methods

Implementations on Foreign Types

Implementors