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: 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: 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: PyReadonlyArray<'py, T, D>
) -> NpyMultiIterBuilder<'py, T, RO<S>>
👎 Deprecated: 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: PyReadonlyArray<'py, 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 unsafe fn add_readwrite<D: Dimension>(
self,
array: &'py PyArray<T, D>
) -> NpyMultiIterBuilder<'py, T, RW<S>>
👎 Deprecated: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub unsafe fn add_readwrite<D: Dimension>(
self,
array: &'py PyArray<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.
Safety
The iterator will produce mutable references into the array which must not be aliased by other references for the life time of the 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: 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.
Trait Implementations
Auto Trait Implementations
impl<'py, T, S> !RefUnwindSafe for NpyMultiIterBuilder<'py, T, S>
impl<'py, T, S> !Send for NpyMultiIterBuilder<'py, T, S>
impl<'py, T, S> !Sync for NpyMultiIterBuilder<'py, T, S>
impl<'py, T, S> Unpin for NpyMultiIterBuilder<'py, T, S> where
S: Unpin,
impl<'py, T, S> !UnwindSafe for NpyMultiIterBuilder<'py, T, S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more