Trait seec::protocols::Dimension

source ·
pub trait Dimension: Clone + PartialOrd + Ord + PartialEq + Eq + Hash + Debug + Send + Sync + 'static {
    // Required method
    fn as_slice(&self) -> &[usize];

    // Provided method
    fn ndim(&self) -> usize { ... }
}

Required Methods§

source

fn as_slice(&self) -> &[usize]

Size of dimensions.

Provided Methods§

source

fn ndim(&self) -> usize

Number of dimensions. Zero for scalar values.

Object Safety§

This trait is not object safe.

Implementors§