extendr_api::prelude

Trait 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 Cell<T>

Assignable element, simply self.set(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 mut T

Assignable element, simply *self = 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).