Trait embedded_layout::layout::linear::spacing::ElementSpacing[][src]

pub trait ElementSpacing: Copy + Clone {
    fn align(
        &self,
        alignment: impl Alignment,
        view: Rectangle,
        reference: Rectangle,
        n: usize,
        objects: usize,
        total_size: u32
    ) -> i32; }
Expand description

ElementSpacing base trait

Required methods

Align view to reference using the element spacing rules

Implementors