[−][src]Struct druid::lens::Index
Lens
for indexing containers
Implementations
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,
[src]
I: RefUnwindSafe,
impl<I> Send for Index<I> where
I: Send,
[src]
I: Send,
impl<I> Sync for Index<I> where
I: Sync,
[src]
I: Sync,
impl<I> Unpin for Index<I> where
I: Unpin,
[src]
I: Unpin,
impl<I> UnwindSafe for Index<I> where
I: UnwindSafe,
[src]
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,
pub 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<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,