Struct servo_arc::UniqueArc
[−]
[src]
pub struct UniqueArc<T: ?Sized + 'static>(_);
An Arc that is known to be uniquely owned
This lets us build arcs that we can mutate before freezing, without needing to change the allocation
Methods
impl<T> UniqueArc<T>
[src]
fn new(data: T) -> Self
[src]
Construct a new UniqueArc
[src]
Convert to a shareable Arc
Trait Implementations
impl<T> Deref for UniqueArc<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.