Trait Viewable

Source
pub trait Viewable {
    // Required methods
    fn labels(&self) -> Vec<String>;
    fn slice(&self) -> Slice;
}
Expand description

Viewable is a common trait implemented for data structures from which views may be created. This allows us to provide a consistent API for constructing and composing views.

Required Methods§

Source

fn labels(&self) -> Vec<String>

The labels of the dimensions in this view.

Source

fn slice(&self) -> Slice

The slice representing this view. Note: this representation may change.

Implementors§