Struct numpy::npyiter::NpyMultiIterBuilder
source · [−]pub struct NpyMultiIterBuilder<'py, T, S: MultiIterMode> { /* private fields */ }
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Expand description
Builder for NpyMultiIter
.
Implementations
sourceimpl<'py, T: Element> NpyMultiIterBuilder<'py, T, ()>
impl<'py, T: Element> NpyMultiIterBuilder<'py, T, ()>
sourcepub fn new() -> Self
👎Deprecated since 0.16.0: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn new() -> Self
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Creates a new builder.
sourcepub fn set(self, flag: NpyIterFlag) -> Self
👎Deprecated since 0.16.0: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn set(self, flag: NpyIterFlag) -> Self
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Applies a flag to this builder, returning self
.
sourceimpl<'py, T: Element, S: MultiIterMode> NpyMultiIterBuilder<'py, T, S>
impl<'py, T: Element, S: MultiIterMode> NpyMultiIterBuilder<'py, T, S>
sourcepub fn add_readonly<D: Dimension>(
self,
array: &'py PyReadonlyArray<'_, T, D>
) -> NpyMultiIterBuilder<'py, T, RO<S>>
👎Deprecated since 0.16.0: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn add_readonly<D: Dimension>(
self,
array: &'py PyReadonlyArray<'_, T, D>
) -> NpyMultiIterBuilder<'py, T, RO<S>>
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Add a readonly array to the resulting iterator.
sourcepub fn add_readwrite<D: Dimension>(
self,
array: &'py mut PyReadwriteArray<'_, T, D>
) -> NpyMultiIterBuilder<'py, T, RW<S>>
👎Deprecated since 0.16.0: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn add_readwrite<D: Dimension>(
self,
array: &'py mut PyReadwriteArray<'_, T, D>
) -> NpyMultiIterBuilder<'py, T, RW<S>>
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Adds a writable array to the resulting iterator.
sourceimpl<'py, T: Element, S: MultiIterModeWithManyArrays> NpyMultiIterBuilder<'py, T, S>
impl<'py, T: Element, S: MultiIterModeWithManyArrays> NpyMultiIterBuilder<'py, T, S>
sourcepub fn build(self) -> PyResult<NpyMultiIter<'py, T, S>>
👎Deprecated since 0.16.0: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn build(self) -> PyResult<NpyMultiIter<'py, T, S>>
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Creates an iterator from this builder.