pub trait ViewsExt: Views {
// Provided methods
fn map<F, V>(self, f: F) -> Map<Self, F>
where Self: Sized,
F: Fn(Self::View) -> V,
V: View { ... }
fn erase(self) -> AnyViews<AnyView>
where Self: 'static + Sized { ... }
}Expand description
Extension trait providing additional utilities for types implementing Views.
This trait provides convenient methods for transforming and manipulating view collections, such as mapping views to different types.
Provided Methods§
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.