pub struct At<'a, B: Backend, T: Element> { /* private fields */ }Expand description
Updates of the elements of an array at an index (Array::at).
Implementations§
Source§impl<B: Backend, T: Element> At<'_, B, T>
impl<B: Backend, T: Element> At<'_, B, T>
Sourcepub fn set(self, values: impl ArrayLike<B, T>) -> Array<B, T>
pub fn set(self, values: impl ArrayLike<B, T>) -> Array<B, T>
The array with the elements at the index replaced by values
(broadcast to the shape of x[index]).
Trait Implementations§
Auto Trait Implementations§
impl<'a, B, T> Freeze for At<'a, B, T>
impl<'a, B, T> RefUnwindSafe for At<'a, B, T>
impl<'a, B, T> Send for At<'a, B, T>
impl<'a, B, T> Sync for At<'a, B, T>
impl<'a, B, T> Unpin for At<'a, B, T>
impl<'a, B, T> UnsafeUnpin for At<'a, B, T>
impl<'a, B, T> UnwindSafe for At<'a, B, T>where
<B as Backend>::Array<T>: UnwindSafe + RefUnwindSafe,
<B as Backend>::Scalar<i32>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more