Skip to main content

ListContainerStyle

Trait ListContainerStyle 

Source
pub trait ListContainerStyle: 'static {
    // Required methods
    fn make_insertion_indicator(
        &self,
        cfg: &ListInsertionConfig,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
    fn insertion(&self) -> ListInsertionRecipe;

    // Provided method
    fn drop_into(&self) -> ListDropIntoRecipe { ... }
}

Required Methods§

Source

fn make_insertion_indicator( &self, cfg: &ListInsertionConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId

Source

fn insertion(&self) -> ListInsertionRecipe

Recipe data for the inline paint pass.

Provided Methods§

Source

fn drop_into(&self) -> ListDropIntoRecipe

Recipe data for the “drop into this container” highlight. Defaulted, so an existing style needs no change.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§