Skip to main content

Compose

Trait Compose 

Source
pub trait Compose: Copy {
    // Required methods
    fn add(self, contribution: Self) -> Self;
    fn scale(self, factor: f32) -> Self;
}

Required Methods§

Source

fn add(self, contribution: Self) -> Self

Source

fn scale(self, factor: f32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Compose for Color

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for Point

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for Rect

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for Size

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for Transform2D

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for f32

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl Compose for f64

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Source§

impl<const N: usize> Compose for [f32; N]

Source§

fn add(self, contribution: Self) -> Self

Source§

fn scale(self, factor: f32) -> Self

Implementors§