palette::angle

Trait UnsignedAngle

Source
pub trait UnsignedAngle {
    // Required method
    fn normalize_unsigned_angle(self) -> Self;
}
Expand description

Angle types that can represent the full circle as positive values.

Required Methods§

Source

fn normalize_unsigned_angle(self) -> Self

Normalize self to a range corresponding to 0 to 360 degrees.

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.

Implementations on Foreign Types§

Source§

impl UnsignedAngle for f32

Source§

impl UnsignedAngle for f64

Source§

impl UnsignedAngle for u8

Implementors§