tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5464Rust 87Markdown 12TOML 91903 Sutichaykuna

⎇ ae5f0e3402ef8e3debb329c06ff9ff8026dd26f3 src/layout.rs Rust · 12 siq'ikuna · 243 B Ñawpa willay Pi imata llamkarqan ch'uya

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}