pub struct VecLens<T> { /* private fields */ }Expand description
A lens over a single element within a Vec<T>.
Trait Implementations§
Source§impl<T> Lens for VecLens<T>
impl<T> Lens for VecLens<T>
Source§impl<T> RefLens for VecLens<T>
impl<T> RefLens for VecLens<T>
Source§fn get_ref<'a>(&self, source: &'a Vec<T>) -> &'a T
fn get_ref<'a>(&self, source: &'a Vec<T>) -> &'a T
Gets a reference to the target of the lens. (This does not consume the source.)
Auto Trait Implementations§
impl<T> Freeze for VecLens<T>
impl<T> RefUnwindSafe for VecLens<T>where
T: RefUnwindSafe,
impl<T> Send for VecLens<T>where
T: Send,
impl<T> Sync for VecLens<T>where
T: Sync,
impl<T> Unpin for VecLens<T>where
T: Unpin,
impl<T> UnsafeUnpin for VecLens<T>
impl<T> UnwindSafe for VecLens<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more