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]
impl<T> UniqueArc<T>
pub fn new(data: T) -> Self
[src]
pub fn new(data: T) -> Self
Construct a new UniqueArc
Convert to a shareable Arc
Trait Implementations
impl<T> Deref for UniqueArc<T>
[src]
impl<T> Deref for UniqueArc<T>
type Target = T
The resulting type after dereferencing.
ⓘImportant traits for &'a mut Rfn deref(&self) -> &T
[src]
ⓘImportant traits for &'a mut R
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for UniqueArc<T>
[src]
impl<T> DerefMut for UniqueArc<T>