yoke::cartable_ptr

Trait CloneableCartablePointerLike

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

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<'a, T> CloneableCartablePointerLike for &'a T

Source§

impl<T> CloneableCartablePointerLike for Rc<T>

Source§

impl<T> CloneableCartablePointerLike for Arc<T>

Implementors§