deno_core

Trait RcLike

Source
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.

Implementations on Foreign Types§

Source§

impl<T: 'static> RcLike<T> for &Rc<T>

Source§

impl<T: 'static> RcLike<T> for Rc<T>

Implementors§

Source§

impl<T: 'static> RcLike<T> for &RcRef<T>

Source§

impl<T: 'static> RcLike<T> for RcRef<T>