[][src]Struct ndarray::iter::Axes

pub struct Axes<'a, D> { /* fields omitted */ }

An iterator over the length and stride of each axis of an array.

See .axes() for more information.

Iterator element type is AxisDescription.

Examples

use ndarray::Array3;
use ndarray::Axis;

let a = Array3::<f32>::zeros((3, 5, 4));

let largest_axis = a.axes()
                    .max_by_key(|ax| ax.len())
                    .unwrap().axis();
assert_eq!(largest_axis, Axis(1));

Trait Implementations

impl<'a, D> Clone for Axes<'a, D>[src]

impl<'a, D> Copy for Axes<'a, D>[src]

impl<'a, D: Debug> Debug for Axes<'a, D>[src]

impl<'a, D> DoubleEndedIterator for Axes<'a, D> where
    D: Dimension
[src]

impl<'a, D> Iterator for Axes<'a, D> where
    D: Dimension
[src]

type Item = AxisDescription

Description of the axis, its length and its stride.

Auto Trait Implementations

impl<'a, D> RefUnwindSafe for Axes<'a, D> where
    D: RefUnwindSafe

impl<'a, D> Send for Axes<'a, D> where
    D: Sync

impl<'a, D> Sync for Axes<'a, D> where
    D: Sync

impl<'a, D> Unpin for Axes<'a, D>

impl<'a, D> UnwindSafe for Axes<'a, D> where
    D: RefUnwindSafe

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.