Struct numpy::npyiter::NpySingleIterBuilder
source · [−]pub struct NpySingleIterBuilder<'py, T, I: IterMode> { /* private fields */ }
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Expand description
Builder of NpySingleIter
.
Implementations
sourceimpl<'py, T: Element> NpySingleIterBuilder<'py, T, Readonly>
impl<'py, T: Element> NpySingleIterBuilder<'py, T, Readonly>
sourcepub fn readonly<D: Dimension>(array: PyReadonlyArray<'py, T, D>) -> Self
👎 Deprecated: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub fn readonly<D: Dimension>(array: PyReadonlyArray<'py, T, D>) -> Self
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Create a new builder for a readonly iterator.
sourceimpl<'py, T: Element> NpySingleIterBuilder<'py, T, ReadWrite>
impl<'py, T: Element> NpySingleIterBuilder<'py, T, ReadWrite>
sourcepub unsafe fn readwrite<D: Dimension>(array: &'py PyArray<T, D>) -> Self
👎 Deprecated: The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
pub unsafe fn readwrite<D: Dimension>(array: &'py PyArray<T, D>) -> Self
The wrappers of the array iterator API are deprecated, please use ndarray’s iterators like Lanes
and Zip
instead.
Create a new builder for a writable 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, I: IterMode> NpySingleIterBuilder<'py, T, I>
impl<'py, T: Element, I: IterMode> NpySingleIterBuilder<'py, T, I>
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
.
sourcepub fn build(self) -> PyResult<NpySingleIter<'py, T, I>>
👎 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<NpySingleIter<'py, T, I>>
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.
Auto Trait Implementations
impl<'py, T, I> !RefUnwindSafe for NpySingleIterBuilder<'py, T, I>
impl<'py, T, I> !Send for NpySingleIterBuilder<'py, T, I>
impl<'py, T, I> !Sync for NpySingleIterBuilder<'py, T, I>
impl<'py, T, I> Unpin for NpySingleIterBuilder<'py, T, I> where
I: Unpin,
impl<'py, T, I> !UnwindSafe for NpySingleIterBuilder<'py, T, I>
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