Trait tuig_ui::Splitter

source ·
pub trait Splitter<'r> {
    type Output;

    // Required method
    fn split(self, parent: Region<'r>) -> Self::Output;
}
Expand description

Common trait implemented by all the things you can pass to Region::split.

This trait isn’t really meant to be implemented externally, but you can if you want. If you really need custom splitting behavior, you might have some trouble with useful methods on Region being private – consider dropping an issue/PR with suggestions to improve the API, as it’s currently not very good.

Required Associated Types§

Required Methods§

source

fn split(self, parent: Region<'r>) -> Self::Output

Implementors§