Skip to main content

Module layout_traits

Module layout_traits 

Source
Expand description

Bridge trait connecting custom element config types to the layout engine.

Any config type T used with CotisLayoutManager as LayoutManager<T, RenderCommandOutput<T>> must implement CotisLayoutCompatible. The built-in implementation for ElementConfig lives in crate::cotis_traits.

Traitsยง

CotisLayoutCompatible
Maps a user-facing element config into layout-engine data.