substrate::schematic

Trait HasContextView

Source
pub trait HasContextView<T> {
    type ContextView: Send + Sync;

    // Required method
    fn context_view(&self, parent: &T) -> ContextView<Self, T>;
}
Expand description

An object that can be nested within a parent context.

Required Associated Types§

Source

type ContextView: Send + Sync

A view of object.

Required Methods§

Source

fn context_view(&self, parent: &T) -> ContextView<Self, T>

Creates a context view of the object given a parent context.

Implementations on Foreign Types§

Source§

impl<T> HasContextView<T> for ()

Source§

type ContextView = ()

Source§

fn context_view(&self, _parent: &T) -> ContextView<Self, T>

Source§

impl<V, T: HasContextView<V>> HasContextView<V> for Option<T>

Source§

impl<V, T: HasContextView<V>> HasContextView<V> for Vec<T>

Source§

type ContextView = Vec<<T as HasContextView<V>>::ContextView>

Source§

fn context_view(&self, parent: &V) -> ContextView<Self, V>

Implementors§