IndexStruct

Trait IndexStruct 

Source
pub trait IndexStruct: Struct {
    // Required methods
    fn range(&self) -> Range<usize>;
    fn set_index(&mut self, value: usize);
}
Expand description

A specialized Struct factory producing Index items. Used primarily by the MultiVector/MultiArrayView.

Required Methods§

Source

fn range(&self) -> Range<usize>

Provide getter for index

Source

fn set_index(&mut self, value: usize)

Provide setter for index

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§