[−][src]Struct ndarray_unit::ArrayUnit
Methods
impl<T, D> ArrayUnit<T, D> where
T: Data,
D: Dimension,
[src]
T: Data,
D: Dimension,
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]
T: Data<Elem = A>,
D: Dimension,
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]
T: Data,
D: Dimension,
&'a ArrayBase<T, D>: Div<Output = ArrayBase<T, D>>,
type Output = ArrayUnit<T, D>
The resulting type after applying the /
operator.
fn div(self, other: &ArrayUnit<T, D>) -> ArrayUnit<T, D>
[src]
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]
T: Data,
D: Dimension,
&'a ArrayBase<T, D>: Sub<Output = ArrayBase<T, D>>,
type Output = ArrayUnit<T, D>
The resulting type after applying the -
operator.
fn sub(self, other: &ArrayUnit<T, D>) -> ArrayUnit<T, D>
[src]
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]
T: Data,
D: Dimension,
&'a ArrayBase<T, D>: Add<Output = ArrayBase<T, D>>,
type Output = ArrayUnit<T, D>
The resulting type after applying the +
operator.
fn add(self, other: &ArrayUnit<T, D>) -> ArrayUnit<T, D>
[src]
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]
T: Data,
D: Dimension,
&'a ArrayBase<T, D>: Mul<Output = ArrayBase<T, D>>,
Auto Trait Implementations
impl<T, D> Send for ArrayUnit<T, D> where
T: Send,
T: Send,
impl<T, D> Sync for ArrayUnit<T, D> where
T: Sync,
T: Sync,
impl<T, D> Unpin for ArrayUnit<T, D> where
D: Unpin,
T: Unpin,
D: Unpin,
T: Unpin,
impl<T, D> UnwindSafe for ArrayUnit<T, D> where
D: UnwindSafe,
T: UnwindSafe,
<T as RawData>::Elem: RefUnwindSafe,
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,
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]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,