Skip to main content

RenderSliverWithKeepAliveMixin

Trait RenderSliverWithKeepAliveMixin 

Source
pub trait RenderSliverWithKeepAliveMixin: RenderSliver {
    // Provided method
    fn setup_parent_data(
        self: RenderHandle<Self>,
        app: &mut App,
        child: AnyRenderObject,
    ) { ... }
}
Expand description

This trait exists to dissociate KeepAlive from RenderSliverMultiBoxAdaptor.

setup_parent_data must be implemented to use a parent data type that embeds a KeepAliveParentData.

Provided Methods§

Source

fn setup_parent_data( self: RenderHandle<Self>, app: &mut App, child: AnyRenderObject, )

Alerts the developer that the child’s parent data needs to embed a KeepAliveParentData.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§