Trait ConstrainedAngle

Source
pub trait ConstrainedAngle {
    // Required methods
    fn new(angle: &Angle) -> Self;
    fn value(&self) -> Angle;
}
Expand description

Trait for constrained angles

Required Methods§

Source

fn new(angle: &Angle) -> Self

Angle constructor that panics when the underlying angle does not satisfy constraints.

Source

fn value(&self) -> Angle

Get underlying angle

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§