Skip to main content

Component

Trait Component 

Source
pub trait Component: Hash + 'static {
    // Required method
    fn build(&self, ctx: &BuildCtx<'_>) -> CellBuilder;

    // Provided methods
    fn param_hash(&self) -> ParamHash { ... }
    fn cell_name(&self) -> String { ... }
}

Required Methods§

Source

fn build(&self, ctx: &BuildCtx<'_>) -> CellBuilder

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§