[−][src]Struct druid::lens::Index
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]
T: Index<I> + IndexMut<I>,
I: Clone,
Auto Trait Implementations
impl<I> RefUnwindSafe for Index<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for Index<I> where
I: Send,
I: Send,
impl<I> Sync for Index<I> where
I: Sync,
I: Sync,
impl<I> Unpin for Index<I> where
I: Unpin,
I: Unpin,
impl<I> UnwindSafe for Index<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<A, B, T> LensExt<A, B> for T where
A: ?Sized,
B: ?Sized,
T: Lens<A, B>,
[src]
A: ?Sized,
B: ?Sized,
T: Lens<A, B>,
fn get(&self, data: &A) -> B where
B: Clone,
[src]
B: Clone,
fn put(&self, data: &mut A, value: B) where
B: Sized,
[src]
B: Sized,
fn then<Other, C>(self, other: Other) -> Then<Self, Other, B> where
Other: Lens<B, C> + Sized,
C: ?Sized,
Self: Sized,
[src]
Other: Lens<B, C> + Sized,
C: ?Sized,
Self: Sized,
fn map<Get, Put, C>(self, get: Get, put: Put) -> Then<Self, Map<Get, Put>, B> where
Get: Fn(&B) -> C,
Put: Fn(&mut B, C),
Self: Sized,
[src]
Get: Fn(&B) -> C,
Put: Fn(&mut B, C),
Self: Sized,
fn deref(self) -> Then<Self, Deref, B> where
B: Deref + DerefMut,
Self: Sized,
[src]
B: Deref + DerefMut,
Self: Sized,
fn index<I>(self, index: I) -> Then<Self, Index<I>, B> where
I: Clone,
B: Index<I> + IndexMut<I>,
Self: Sized,
[src]
I: Clone,
B: Index<I> + IndexMut<I>,
Self: Sized,
fn in_arc(self) -> InArc<Self> where
A: Clone,
B: Data,
Self: Sized,
[src]
A: Clone,
B: Data,
Self: Sized,
impl<T> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,