Struct dimensioned::Dim
[−]
[src]
pub struct Dim<D: Dimension, V>(pub V, pub PhantomData<D>);
Methods
impl<D: Dimension, V> Dim<D, V>
Trait Implementations
impl<D: Dimension, V> !NotDim for Dim<D, V>
impl<D, A, B> Wrap<B> for Dim<D, A> where D: Dimension
impl<D, V> Sqrt for Dim<D, V> where D: DivDim<Two>, V: Float, D::Output: Dimension
impl<D, V> Sqr for Dim<D, V> where D: MulDim<Two>, V: Copy + Mul, D::Output: Dimension
impl<D, V> Display for Dim<D, V> where D: DimToString, V: Display
impl<Dl, Dr, Vl, Vr> Mul<Dim<Dr, Vr>> for Dim<Dl, Vl> where Dl: Dimension + AddDim<Dr>, Dr: Dimension, Vl: Mul<Vr>, Dl::Output: Dimension
Multiplying! Dimensions must be able to add.
type Output = Dim<Dl::Output, Vl::Output>
fn mul(self, rhs: Dim<Dr, Vr>) -> Dim<Dl::Output, Vl::Output>
impl<D, V, RHS> Mul<RHS> for Dim<D, V> where D: Dimension, V: Mul<RHS>, RHS: NotDim
Scalar multiplication (with scalar on RHS)!
impl<Dl, Dr, Vl, Vr> Div<Dim<Dr, Vr>> for Dim<Dl, Vl> where Dl: Dimension + SubDim<Dr>, Dr: Dimension, Vl: Div<Vr>, Dl::Output: Dimension
Dividing! Dimensions must be able to subtract.
type Output = Dim<Dl::Output, Vl::Output>
fn div(self, rhs: Dim<Dr, Vr>) -> Dim<Dl::Output, Vl::Output>
impl<D, V, RHS> Div<RHS> for Dim<D, V> where D: Dimension, V: Div<RHS>, RHS: NotDim
Scalar division (with scalar on RHS)!