layout_engine 0.7.0

A small project to mimic css flexbox and css grid
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod rect;
mod trbl;
mod vec2;
pub use rect::Rect;
pub use trbl::TRBL;
pub use vec2::Vec2;

/// A struct used to represent the space an item takes up on an axis.
///
/// This is mainly used with align.
#[derive(Debug, Clone, Copy, PartialEq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct LayoutInfo {
    pub start: usize,
    pub end: usize,
}