tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1076HTML 1008Markdown 12TOML 83208 Definitions

⎇ 30c626da4e2af7a2ca4f8bb2b014ab2a63d44dda src/layout.rs Rust · 12 lines · 243 B History Who touched what raw

Add (nightly) no_std support 30c626da4 · Maximilian Goisser ·

1#[cfg(not(feature = "std"))]
2use alloc::vec::Vec;
3
4use crate::geometry::{Point, Size};
5
6#[derive(Debug, Clone)]
7pub struct Node {
8    pub(crate) order: u32,
9    pub size: Size<f32>,
10    pub location: Point<f32>,
11    pub children: Vec<Node>,
12}