Skip to main content

IntoScale

Trait IntoScale 

Source
pub trait IntoScale {
    // Required method
    fn into_scale(self) -> Vec2;
}
Expand description

A scale: 1.5 (both axes), (2.0, 0.5), [2.0, 0.5] or a Vec2.

Required Methods§

Source

fn into_scale(self) -> Vec2

The horizontal and vertical scale.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IntoScale for (f64, f64)

Source§

impl IntoScale for Vec2

Source§

impl IntoScale for [f64; 2]

Source§

impl IntoScale for f64

Source§

impl IntoScale for i32

Implementors§