Struct atomic_refcell::AtomicRef
[−]
[src]
pub struct AtomicRef<'b, T: ?Sized + 'b> { /* fields omitted */ }
A wrapper type for an immutably borrowed value from an AtomicRefCell<T>
.
Methods
impl<'b, T: ?Sized> AtomicRef<'b, T>
[src]
fn clone(orig: &AtomicRef<'b, T>) -> AtomicRef<'b, T>
Copies an AtomicRef
.
fn map<U: ?Sized, F>(orig: AtomicRef<'b, T>, f: F) -> AtomicRef<'b, U> where F: FnOnce(&T) -> &U
Make a new AtomicRef
for a component of the borrowed data.
Trait Implementations
impl<'b, T: ?Sized> Deref for AtomicRef<'b, T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value