pub trait RefCounted<T>:
Sized
+ Clone
+ Deref<Target = T>
+ From<T> {
// Required methods
fn get_mut(&mut self) -> Option<&mut T>;
fn make_mut(&mut self) -> &mut T
where T: Clone;
}Expand description
A convenience trait to abstract over Arc
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.