pub trait CompositionExpressionResolver<H: HostTypes> {
// Required method
fn resolve(
&self,
handle: CompositionExpressionHandle<H>,
) -> Option<CompositionExpressionRecord<H>>;
}Expand description
Phase 8 (orphan-closure) — resolver trait for CompositionExpression<H>.
Hosts implement this trait to map a handle into a typed record. The default Null stub does not implement this trait — it carries no record. Resolution is the responsibility of the host pipeline.
Required Methods§
Sourcefn resolve(
&self,
handle: CompositionExpressionHandle<H>,
) -> Option<CompositionExpressionRecord<H>>
fn resolve( &self, handle: CompositionExpressionHandle<H>, ) -> Option<CompositionExpressionRecord<H>>
Resolve a handle into its record. Returns None when the
handle does not correspond to known content.