Trait parry2d_f64::utils::Array1

source ·
pub trait Array1<T>: IndexMut<usize, Output = T> {
    // Required method
    fn len(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn get_at(&self, i: usize) -> Option<&T> { ... }
}
Expand description

Abstraction over a 1D array.

Required Methods§

source

fn len(&self) -> usize

The number of heights on this storage.

Provided Methods§

source

fn is_empty(&self) -> bool

Is this array empty?

source

fn get_at(&self, i: usize) -> Option<&T>

Gets the i-th element of this array, if it exists.

Implementations on Foreign Types§

source§

impl<T> Array1<T> for Vec<T>

source§

fn len(&self) -> usize

source§

impl<T> Array1<T> for DVector<T>

source§

fn len(&self) -> usize

Implementors§