gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5364Rust 86Markdown 12TOML 91822 Definitions

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

Add (nightly) no_std support 54613f944 · 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}