[−][src]Trait building_blocks::prelude::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 ExtentN<[T; 2]> where
T: Copy + Mul<T, Output = T>,
[src]
T: Copy + Mul<T, Output = T>,
type VolumeType = T
pub fn volume(&self) -> T
[src]
impl<T> Extent<[T; 3]> for ExtentN<[T; 3]> where
T: Copy + Mul<T, Output = T>,
[src]
T: Copy + Mul<T, Output = T>,