Trait toad_common::stem::StemCellBehavior
source · 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.