[][src]Struct wrrm::Access

pub struct Access<'a, T> { /* fields omitted */ }

Shared access to the content of the Wrrm.

Implementations

impl<'a, T: Clone> Access<'a, T>[src]

pub fn modify_with(me: Self, modification: impl FnMut(&mut T))[src]

Modifies the value using the given function.

The function will be passed a mutable reference to a copy of the value currently stored in the container.

Note: The function might be called multiple times, with new copies every time, in situations where multiple threads are competing for an update. You are expected to perform the same modification on the value every time.

Trait Implementations

impl<'a, T> Debug for Access<'a, T> where
    T: Debug
[src]

impl<'a, T> Deref for Access<'a, T>[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T: Clone> From<Access<'a, T>> for Modify<'a, T>[src]

Auto Trait Implementations

impl<'a, T> Send for Access<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for Access<'a, T> where
    T: Send + Sync

impl<'a, T> Unpin for Access<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.