pub trait RcLike<T>: AsRef<T> + Into<RcRef<T>> { }
Expand description
The RcLike
trait provides an abstraction over std::rc::Rc
and RcRef
,
so that applicable methods can operate on either type.
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.