Skip to main content

ViewKeyExt

Trait ViewKeyExt 

Source
pub trait ViewKeyExt: View {
    // Required method
    fn key(self, key: Option<String>) -> KeyedView<Self>;
}
Expand description

Extension methods for assigning a root key to typed views.

Required Methods§

Source

fn key(self, key: Option<String>) -> KeyedView<Self>

Assign a root key to this view.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<V: View> ViewKeyExt for V