Trait ndarray::AssignElem

source ·
pub trait AssignElem<T> {
    // Required method
    fn assign_elem(self, input: T);
}
Expand description

A producer element that can be assigned to once

Required Methods§

source

fn assign_elem(self, input: T)

Assign the value input to the element that self represents.

Implementations on Foreign Types§

source§

impl<'a, T> AssignElem<T> for &'a mut T

Assignable element, simply *self = input.

source§

fn assign_elem(self, input: T)

source§

impl<'a, T> AssignElem<T> for &'a mut MaybeUninit<T>

Assignable element, the item in the MaybeUninit is overwritten (prior value, if any, is not read or dropped).

source§

fn assign_elem(self, input: T)

source§

impl<'a, T> AssignElem<T> for &'a Cell<T>

Assignable element, simply self.set(input).

source§

fn assign_elem(self, input: T)

Implementors§

source§

impl<'a, T> AssignElem<T> for &'a MathCell<T>

Assignable element, simply self.set(input).