pub struct Index<I> { /* private fields */ }
Expand description
Lens
for indexing containers
Implementations§
Trait Implementations§
source§impl<T, I> Lens<T, <T as Index<I>>::Output> for Index<I>where
T: ?Sized + Index<I> + IndexMut<I>,
I: Clone,
impl<T, I> Lens<T, <T as Index<I>>::Output> for Index<I>where T: ?Sized + Index<I> + IndexMut<I>, I: Clone,
impl<I: Copy> Copy for Index<I>
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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.