Point

Trait Point 

Source
pub trait Point {
    type T: Scalar;

    // Required methods
    fn index(&self) -> usize;
    fn dim(&self) -> usize;
    fn coords(&self, data: &mut [Self::T]);
}
Expand description

A point

Required Associated Types§

Source

type T: Scalar

Scalar type

Required Methods§

Source

fn index(&self) -> usize

The point’s index

Source

fn dim(&self) -> usize

Return the dimension of the point.

Source

fn coords(&self, data: &mut [Self::T])

Get the coordinates of the point.

Implementors§

Source§

impl<T: Scalar> Point for Point<'_, T>

Source§

type T = T