pub trait Pen:
Clone
+ Eq
+ PartialEq
+ Hash {
// Required methods
fn available_colors() -> Vec<Self>;
fn nib_size_mm() -> f64;
fn rgb_color(&self) -> LinSrgb;
// Provided methods
fn hsl_color(&self) -> Hsl { ... }
fn lab_color(&self) -> Lab { ... }
fn closest_pen_to_color(icolor: Lab) -> Self { ... }
fn rgb_pixel(&self) -> (u8, u8, u8) { ... }
}
Required Methods§
fn available_colors() -> Vec<Self>
fn nib_size_mm() -> f64
fn rgb_color(&self) -> LinSrgb
Provided Methods§
fn hsl_color(&self) -> Hsl
fn lab_color(&self) -> Lab
fn closest_pen_to_color(icolor: Lab) -> Self
fn rgb_pixel(&self) -> (u8, u8, u8)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.