pub trait StemCellBehavior<T> {
    fn new(t: T) -> Self
    where
        Self: Sized
; fn map_ref<F, R>(&self, f: F) -> R
    where
        F: for<'a> FnMut(&'a T) -> R
; fn map_mut<F, R>(&self, f: F) -> R
    where
        F: for<'a> FnMut(&'a mut T) -> R
; }
Expand description

A mutable memory location

This is used to back the behavior of Stem, which should be used instead of this trait.

Required Methods§

Create an instance of Self

Map a reference to T to a new type

Implementors may choose to panic or block if map_mut called concurrently.

Map a mutable reference to T to a new type

Implementors may choose to panic or block if map_ref or map_mut called concurrently.

Implementations on Foreign Types§

Implementors§