Trait Child

Source
pub trait Child: RLimits {
    // Required methods
    fn index(&self) -> (usize, usize);
    fn span(&self) -> (usize, usize);
}

Required Methods§

Source

fn index(&self) -> (usize, usize)

(Row, Column) index of the item

Source

fn span(&self) -> (usize, usize)

(Row, Column) span of the item, lets items span across multiple rows or columns. Minimum is (1,1), and the layout won’t save you if you tell it to overlap items.

Trait Implementations§

Source§

impl<'a, T: Child + 'static> From<&'a T> for &'a (dyn Child + 'static)

Source§

fn from(value: &'a T) -> Self

Converts to this type from the input type.

Implementors§