pub struct Index<I> { /* private fields */ }
Expand description
Lens
for indexing containers
Implementations§
Trait Implementations§
§impl<T, I> Lens<T, <T as Index<I>>::Output> for Index<I>where
T: Index<I> + IndexMut<I> + ?Sized,
I: Clone,
impl<T, I> Lens<T, <T as Index<I>>::Output> for Index<I>where T: Index<I> + IndexMut<I> + ?Sized, I: Clone,
impl<I> Copy for Index<I>where I: Copy,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<A, B, T> LensExt<A, B> for Twhere
T: Lens<A, B>,
A: ?Sized,
B: ?Sized,
impl<A, B, T> LensExt<A, B> for Twhere T: Lens<A, B>, A: ?Sized, B: ?Sized,
§fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where
Other: Lens<B, C>,
Self: Sized,
C: ?Sized,
fn then<Other, C>(self, other: Other) -> Then<Self, Other, B>where Other: Lens<B, C>, Self: Sized, C: ?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,
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,
§fn deref(self) -> Then<Self, Deref, B>where
B: Deref + DerefMut,
Self: Sized,
fn deref(self) -> Then<Self, Deref, B>where B: Deref + DerefMut, Self: Sized,
Invoke a type’s
Deref
impl Read more§fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where
I: Clone,
B: Index<I> + IndexMut<I>,
Self: Sized,
fn index<I>(self, index: I) -> Then<Self, Index<I>, B>where I: Clone, B: Index<I> + IndexMut<I>, Self: Sized,
Access an index in a container Read more
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.