Struct pleco::tools::pleco_arc::UniqueArc[][src]

pub struct UniqueArc<T: ?Sized>(_);

An Arc that ensures a single reference to it. Allows for modification to the state inside, and also transformation into an Arc.

Methods

impl<T> UniqueArc<T>
[src]

Construct a new UniqueArc

Convert to a shareable Arc once we're done using it

Trait Implementations

impl<T> Deref for UniqueArc<T>
[src]

The resulting type after dereferencing.

Important traits for &'a mut R

Dereferences the value.

impl<T> DerefMut for UniqueArc<T>
[src]

Important traits for &'a mut R

Mutably dereferences the value.

Auto Trait Implementations

impl<T: ?Sized> Send for UniqueArc<T> where
    T: Send + Sync

impl<T: ?Sized> Sync for UniqueArc<T> where
    T: Send + Sync