Skip to main content

GridBuilder

Trait GridBuilder 

Source
pub trait GridBuilder: Sized {
    // Required methods
    fn spacing(self, s: impl Into<f64>) -> Self;
    fn row_spacing(self, s: impl Into<f64>) -> Self;
    fn column_spacing(self, s: impl Into<f64>) -> Self;
    fn align(self, a: Alignment) -> Self;
}
Expand description

Builder methods of Grid, 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

Set both the row and column gutters: a Space step or points.

Source

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

Source

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

Source

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

Default alignment of every cell within its cell rect (cell/row overrides win).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<C: PieceSeq> GridBuilder for Grid<C>

Source§

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

Day API ↩ Guides· daybrite.dev