pub unsafe trait ImplicitWriteBarrier { }
Expand description

Indicates that a mutable reference to a type is safe to use without triggering a write barrier.

This means one of either two things:

  1. This type doesn’t need any write barriers
  2. Mutating this type implicitly triggers a write barrier.

This is the bound for RefCell<T>. Since a RefCell doesn’t explicitly trigger write barriers, a RefCell can only be used with T if either:

  1. T doesn’t need any write barriers or
  2. T implicitly triggers write barriers on any mutation

Implementors