[][src]Struct druid::lens::InArc

pub struct InArc<L> { /* fields omitted */ }

A Lens that exposes data within an Arc with copy-on-write semantics

A copy is only made in the event that a different value is written.

Methods

impl<L> InArc<L>[src]

pub fn new<A, B>(inner: L) -> Self where
    A: Clone,
    B: Data,
    L: Lens<A, B>, 
[src]

Adapt a lens to operate on an Arc

See also LensExt::in_arc

Trait Implementations

impl<L: Clone> Clone for InArc<L>[src]

impl<L: Copy> Copy for InArc<L>[src]

impl<L: Debug> Debug for InArc<L>[src]

impl<A, B, L> Lens<Arc<A>, B> for InArc<L> where
    A: Clone,
    B: Data,
    L: Lens<A, B>, 
[src]

Auto Trait Implementations

impl<L> RefUnwindSafe for InArc<L> where
    L: RefUnwindSafe

impl<L> Send for InArc<L> where
    L: Send

impl<L> Sync for InArc<L> where
    L: Sync

impl<L> Unpin for InArc<L> where
    L: Unpin

impl<L> UnwindSafe for InArc<L> where
    L: UnwindSafe

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<A, B, T> LensExt<A, B> for T where
    A: ?Sized,
    B: ?Sized,
    T: Lens<A, B>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.