ElementSpacing

Trait ElementSpacing 

Source
pub trait ElementSpacing: Copy + Clone {
    // Required method
    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§

Source

fn align( &self, alignment: impl Alignment, view: Rectangle, reference: Rectangle, n: usize, objects: usize, total_size: u32, ) -> i32

Align view to reference using the element spacing rules

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§