frus-layout 0.4.0

frus — layout engine (flexbox) on top of taffy
Documentation
//! `frus-layout` — frus's layout engine.
//!
//! It turns a **tree of styled nodes** into **positioned rectangles**, in absolute
//! coordinates, ready for `frus-gpu` to draw.
//!
//! The implementation rests on [`taffy`](https://docs.rs/taffy) for flexbox, but
//! taffy is **entirely hidden** behind frus's own API, so it can be replaced later
//! without breaking anything public.

#![deny(missing_docs)]

// The README's example is compiled and run by `cargo test --doc`, so it cannot rot.
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
pub struct ReadmeDoctests;

mod style;
mod tree;

pub use style::{Align, AlignContent, Dimension, FlexDirection, Justify, Style};
pub use tree::{Layout, MeasureFn, NodeId, Overflowing, Side};

// Re-export of the core geometry types, as a convenience for callers.
pub use frus_core::{Rect, Size};