pub trait View: 'static {
// Provided method
fn id(self, id: impl Hash) -> AnyView
where Self: Sized { ... }
}Expand description
Something that can be shown: every view Ferrokit makes (text,
button, table, the stacks…) and anything built from them. Built
once: its native views and effects are made the first time it’s shown
and updated in place after.
Make your own views by composing these (a function returning
impl View) or by wrapping a native view with native;
implementing View directly isn’t supported, so its internals can
change.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".