pub trait StemCellBehavior<T> {
// Required methods
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<T> StemCellBehavior<T> for RefCell<T>
impl<T> StemCellBehavior<T> for RefCell<T>
Source§impl<T> StemCellBehavior<T> for RwLock<T>
Available on crate feature std only.
impl<T> StemCellBehavior<T> for RwLock<T>
Available on crate feature
std only.