Skip to main content

ValueForAxis

Trait ValueForAxis 

Source
pub trait ValueForAxis<T> {
    // Required method
    fn value_for_axis(&self, axis: Axis) -> T;
}

Required Methods§

Source

fn value_for_axis(&self, axis: Axis) -> T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ValueForAxis<T> for Point<T>
where T: Copy + Num + NumAssignOps + NumOps,