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> ZStackBuilder for ZStack<C>
where C: PieceSeq,

Source§

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