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§
Sourcetype ContextView: Send + Sync
type ContextView: Send + Sync
A view of object.
Required Methods§
Sourcefn context_view(&self, parent: &T) -> ContextView<Self, T>
fn context_view(&self, parent: &T) -> ContextView<Self, T>
Creates a context view of the object given a parent context.