Trait rustjs::deno_core::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

Implementors§

source§

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

source§

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