Skip to main content

FromRgba

Trait FromRgba 

Source
pub trait FromRgba: Sized {
    // Required method
    fn from_rgba(rgba: RGBA) -> Self;
}
Expand description

Trait for types that can be constructed from RGBA.

Implemented for RGBA, RGB, HSV, HSL.

Required Methods§

Source

fn from_rgba(rgba: RGBA) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§