[−][src]Trait building_blocks_core::extent::Extent
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
type VolumeType
Required methods
fn volume(&self) -> Self::VolumeType
For integer extents, the number of points in the extent.
Implementors
impl<T> Extent<[T; 2]> for Extent2<T> where
T: Copy + Mul<Output = T>,
[src]
T: Copy + Mul<Output = T>,
type VolumeType = T
fn volume(&self) -> T
[src]
impl<T> Extent<[T; 3]> for Extent3<T> where
T: Copy + Mul<Output = T>,
[src]
T: Copy + Mul<Output = T>,