#[repr(u32)]pub enum GpuLayoutMode {
Grid = 0,
FlexRow = 1,
FlexColumn = 2,
Block = 3,
Absolute = 4,
DataViz = 5,
Spring = 6,
}Expand description
Layout solver mode encoded in the low 4 bits of GpuLayoutNodeInput::flags_kind.
Variants§
Grid = 0
Fixed-column responsive grid with prefix-summed row heights.
FlexRow = 1
Horizontal single-line flex layout with Blelloch exclusive prefix-sum and flex_grow.
FlexColumn = 2
Vertical single-line flex layout with Blelloch exclusive prefix-sum and flex_grow.
Block = 3
Vertical stacked block container stretching children across available width.
Absolute = 4
Direct coordinate placement relative to parent content bounds.
DataViz = 5
Direct GPU scale projection for bar charts, scatter plots, and heatmaps.
Spring = 6
Semi-implicit Verlet spring-damper physics integration executed on GPU.
Trait Implementations§
Source§impl Clone for GpuLayoutMode
impl Clone for GpuLayoutMode
impl Copy for GpuLayoutMode
Source§impl Debug for GpuLayoutMode
impl Debug for GpuLayoutMode
Source§impl Default for GpuLayoutMode
impl Default for GpuLayoutMode
Source§impl<'de> Deserialize<'de> for GpuLayoutMode
impl<'de> Deserialize<'de> for GpuLayoutMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GpuLayoutMode
Source§impl Hash for GpuLayoutMode
impl Hash for GpuLayoutMode
Source§impl Ord for GpuLayoutMode
impl Ord for GpuLayoutMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GpuLayoutMode
impl PartialEq for GpuLayoutMode
Source§impl PartialOrd for GpuLayoutMode
impl PartialOrd for GpuLayoutMode
Source§impl Serialize for GpuLayoutMode
impl Serialize for GpuLayoutMode
impl StructuralPartialEq for GpuLayoutMode
Auto Trait Implementations§
impl Forget for GpuLayoutMode
impl Freeze for GpuLayoutMode
impl Move for GpuLayoutMode
impl RefUnwindSafe for GpuLayoutMode
impl Send for GpuLayoutMode
impl Sync for GpuLayoutMode
impl Unpin for GpuLayoutMode
impl UnsafeUnpin for GpuLayoutMode
impl UnwindSafe for GpuLayoutMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more