pub trait Lens: PartialLens{
// Required method
fn get(&self, v: Self::InitialSource) -> Self::InitialTarget;
}
Expand description
The supertype of all lens families.
Required Methods§
fn get(&self, v: Self::InitialSource) -> Self::InitialTarget
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.