pub trait Lens<T, U>:
Clone
+ Copy
+ 'static {
// Required methods
fn focus<'a>(&self, data: &'a T) -> &'a U;
fn focus_mut<'a>(&self, data: &'a mut T) -> &'a mut U;
}Required Methods§
fn focus<'a>(&self, data: &'a T) -> &'a U
fn focus_mut<'a>(&self, data: &'a mut T) -> &'a mut U
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.