PointFromArray

Trait PointFromArray 

Source
pub trait PointFromArray<T, const N: usize> {
    // Required method
    fn from_array(vals: [T; N]) -> Self;
}
Expand description

A point that can be initialized with an array of the appropriate size.

Required Methods§

Source

fn from_array(vals: [T; N]) -> Self

Initializes a point from an array.

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: Copy> PointFromArray<T, 2> for Point2d<T>

Source§

impl<T: Copy> PointFromArray<T, 3> for Point3d<T>

Source§

impl<T: Copy, const N: usize> PointFromArray<T, N> for PointNd<T, N>