[][src]Struct druid::lens::Index

pub struct Index<I> { /* fields omitted */ }

Lens for indexing containers

Methods

impl<I> Index<I>[src]

pub fn new(index: I) -> Self[src]

Construct a lens that accesses a particular index

See also LensExt::index.

Trait Implementations

impl<I: Clone> Clone for Index<I>[src]

impl<I: Copy> Copy for Index<I>[src]

impl<I: Debug> Debug for Index<I>[src]

impl<T: ?Sized, I> Lens<T, <T as Index<I>>::Output> for Index<I> where
    T: Index<I> + IndexMut<I>,
    I: Clone
[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for Index<I> where
    I: RefUnwindSafe

impl<I> Send for Index<I> where
    I: Send

impl<I> Sync for Index<I> where
    I: Sync

impl<I> Unpin for Index<I> where
    I: Unpin

impl<I> UnwindSafe for Index<I> where
    I: 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.