Trait Component

Source
pub trait Component {
    type Impl: Send + Sync;
    type Builder: TypedBuilder<Self::Impl>;

    // Required method
    fn builder() -> Self::Builder;
}
Expand description

Allows CatalogBuilder::add() to accept types with associated builder

Required Associated Types§

Required Methods§

Source

fn builder() -> Self::Builder

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§