Skip to main content

ZStackBuilder

Trait ZStackBuilder 

Source
pub trait ZStackBuilder: Sized {
    // Required method
    fn align(self, a: Alignment) -> Self;
}
Expand description

Builder methods of ZStack, 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 align(self, a: Alignment) -> Self

Where children sit within the stack’s bounds (default Alignment::Center).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<C: PieceSeq> ZStackBuilder for ZStack<C>

Source§

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

Day API ↩ Guides· daybrite.dev