Struct pleco::tools::pleco_arc::Arc [−][src]
pub struct Arc<T: ?Sized> { /* fields omitted */ }
Reference counting pointer, sharable between threads.
Methods
impl<T> Arc<T>
[src]
impl<T> Arc<T>
impl<T: ?Sized> Arc<T>
[src]
impl<T: ?Sized> Arc<T>
pub fn get_mut(this: &mut Self) -> Option<&mut T>
[src]
pub fn get_mut(this: &mut Self) -> Option<&mut T>
Gets a & mut T
of the inner value if there is only one reference.
pub fn is_unique(&self) -> bool
[src]
pub fn is_unique(&self) -> bool
Allows for determining if the reference count is zero.
Trait Implementations
impl<T: ?Sized + Sync + Send> Send for Arc<T>
[src]
impl<T: ?Sized + Sync + Send> Send for Arc<T>
impl<T: ?Sized + Sync + Send> Sync for Arc<T>
[src]
impl<T: ?Sized + Sync + Send> Sync for Arc<T>
impl<T: ?Sized> Deref for Arc<T>
[src]
impl<T: ?Sized> Deref for Arc<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: ?Sized> Clone for Arc<T>
[src]
impl<T: ?Sized> Clone for Arc<T>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: ?Sized> Drop for Arc<T>
[src]
impl<T: ?Sized> Drop for Arc<T>