html5ever::tendril

Trait Atomicity

Source
pub unsafe trait Atomicity: 'static { }
Expand description

The multithreadedness of a tendril.

Exactly two types implement this trait:

  • Atomic: use this in your tendril and you will have a Send tendril which works across threads; this is akin to Arc.

  • NonAtomic: use this in your tendril and you will have a tendril which is neither Send nor Sync but should be a tad faster; this is akin to Rc.

The layout of this trait is also mandated to be that of a usize, for it is used for reference counting.

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.

Implementors§