Skip to main content

RowBuilder

Trait RowBuilder 

Source
pub trait RowBuilder: Sized {
    // Required methods
    fn spacing(self, s: impl Into<f64>) -> Self;
    fn align(self, a: VAlign) -> Self;
    fn fit(self, fit: RowFit) -> Self;
}
Expand description

Builder methods of Row, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn spacing(self, s: impl Into<f64>) -> Self

The gap between children: a Space step or points.

Source

fn align(self, a: VAlign) -> Self

Source

fn fit(self, fit: RowFit) -> Self

What happens when the children outgrow the row’s width (docs/size-classes.md).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<C: PieceSeq> RowBuilder for Row<C>

Source§

impl<DecoratedInner: RowBuilder + Piece> RowBuilder for Decorated<DecoratedInner>

Day API ↩ Guides· daybrite.dev