[][src]Trait building_blocks::prelude::Extent

pub trait Extent<N> {
    type VolumeType;
    fn volume(&self) -> Self::VolumeType;
}

A trait for methods that all ExtentN<N> should have, but only those which are implemented specially for each ExtentN<N>. The goal is only to generalize over the number of dimensions.

Associated Types

Loading content...

Required methods

fn volume(&self) -> Self::VolumeType

For integer extents, the number of points in the extent.

Loading content...

Implementors

impl<T> Extent<[T; 2]> for ExtentN<[T; 2]> where
    T: Copy + Mul<T, Output = T>, 
[src]

type VolumeType = T

impl<T> Extent<[T; 3]> for ExtentN<[T; 3]> where
    T: Copy + Mul<T, Output = T>, 
[src]

type VolumeType = T

Loading content...