palette::angle

Trait HalfRotation

Source
pub trait HalfRotation {
    // Required method
    fn half_rotation() -> Self;
}
Expand description

Represents types that can express half of a rotation (i.e. 180 degrees).

Required Methods§

Source

fn half_rotation() -> Self

Return a value that represents half of a rotation (i.e. 180 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 HalfRotation for f32

Source§

impl HalfRotation for f64

Source§

impl HalfRotation for u8

Implementors§