pub unsafe trait CloneableCartablePointerLike: CartablePointerLike { }
Expand description

An object that implements CartablePointerLike that also supports cloning without changing the address of referenced data.

§Safety

Implementer safety:

  1. addref_raw must create a new owner such that an additional call to drop_raw does not create a dangling pointer
  2. addref_raw must not change the address of any referenced data.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T> CloneableCartablePointerLike for &'a T

source§

impl<T> CloneableCartablePointerLike for Rc<T>

source§

impl<T> CloneableCartablePointerLike for Arc<T>

Implementors§