cosmic::cosmic_theme::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.

Object Safety§

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§