stretch 0.3.2

High performance & cross-platform Flexbox implementation
Documentation
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;

use crate::algo::ComputeResult;
use crate::geometry::{Point, Size};
use crate::number::Number;

#[derive(Copy, Debug, Clone)]
pub struct Layout {
    pub(crate) order: u32,
    pub size: Size<f32>,
    pub location: Point<f32>,
}

impl Layout {
    pub(crate) fn new() -> Self {
        Layout { order: 0, size: Size { width: 0.0, height: 0.0 }, location: Point { x: 0.0, y: 0.0 } }
    }
}

#[derive(Debug, Clone)]
pub(crate) struct Cache {
    pub(crate) node_size: Size<Number>,
    pub(crate) parent_size: Size<Number>,
    pub(crate) perform_layout: bool,

    pub(crate) result: ComputeResult,
}