HasViewId

Trait HasViewId 

Source
pub trait HasViewId {
    // Required method
    fn view_id(&self) -> ViewId;
}
Expand description

A trait for types that have an associated ViewId.

This is automatically implemented for all types that implement View, and can be manually implemented for intermediate types like [Pending].

Required Methods§

Source

fn view_id(&self) -> ViewId

Returns the ViewId associated with this value.

Implementors§

Source§

impl<T> HasViewId for LazyView<T>

Source§

impl<V: View> HasViewId for V

Blanket implementation of HasViewId for all View types.