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§
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.