Trait Polar

Source
pub trait Polar:
    Sized
    + One
    + Add<Output = Self>
    + Mul<Output = Self>
    + Sub<Output = Self> {
    // Provided method
    fn polar(self) -> Self { ... }
}
Expand description

Types that can represent a polar value.

Provided Methods§

Source

fn polar(self) -> Self

Assuming self is a value in the range 0..=1, produces the polar representation (-1..=1).

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.

Implementors§

Source§

impl<T> Polar for T
where T: One + Add<Output = Self> + Mul<Output = Self> + Sub<Output = Self>,