[][src]Struct ndarray_unit::ArrayUnit

pub struct ArrayUnit<T, D> where
    T: Data,
    D: Dimension
{ /* fields omitted */ }

Methods

impl<T, D> ArrayUnit<T, D> where
    T: Data,
    D: Dimension
[src]

pub fn new(arr: ArrayBase<T, D>, u: Unit) -> ArrayUnit<T, D>[src]

Create an ArrayUnit from a ndarray::ArrayBase and an Unit

pub fn array(&self) -> &ArrayBase<T, D>[src]

Return a reference to the underlying ndarray::ArrayBase

Trait Implementations

impl<A: Display, T, D> Display for ArrayUnit<T, D> where
    T: Data<Elem = A>,
    D: Dimension
[src]

impl<'_, T, D> Div<&'_ ArrayUnit<T, D>> for &'_ ArrayUnit<T, D> where
    T: Data,
    D: Dimension,
    &'a ArrayBase<T, D>: Div<Output = ArrayBase<T, D>>, 
[src]

type Output = ArrayUnit<T, D>

The resulting type after applying the / operator.

impl<'_, T, D> Sub<&'_ ArrayUnit<T, D>> for &'_ ArrayUnit<T, D> where
    T: Data,
    D: Dimension,
    &'a ArrayBase<T, D>: Sub<Output = ArrayBase<T, D>>, 
[src]

type Output = ArrayUnit<T, D>

The resulting type after applying the - operator.

impl<'_, T, D> Add<&'_ ArrayUnit<T, D>> for &'_ ArrayUnit<T, D> where
    T: Data,
    D: Dimension,
    &'a ArrayBase<T, D>: Add<Output = ArrayBase<T, D>>, 
[src]

type Output = ArrayUnit<T, D>

The resulting type after applying the + operator.

impl<'_, T, D> Mul<&'_ ArrayUnit<T, D>> for &'_ ArrayUnit<T, D> where
    T: Data,
    D: Dimension,
    &'a ArrayBase<T, D>: Mul<Output = ArrayBase<T, D>>, 
[src]

type Output = ArrayUnit<T, D>

The resulting type after applying the * operator.

Auto Trait Implementations

impl<T, D> Send for ArrayUnit<T, D> where
    T: Send

impl<T, D> Sync for ArrayUnit<T, D> where
    T: Sync

impl<T, D> Unpin for ArrayUnit<T, D> where
    D: Unpin,
    T: Unpin

impl<T, D> UnwindSafe for ArrayUnit<T, D> where
    D: UnwindSafe,
    T: UnwindSafe,
    <T as RawData>::Elem: RefUnwindSafe

impl<T, D> RefUnwindSafe for ArrayUnit<T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe,
    <T as RawData>::Elem: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]