Module util

Source
Expand description

Helpful misc. utilities such as a function to debug print a tree

Modulesยง

math ๐Ÿ”’
Contains numerical helper traits and functions
print ๐Ÿ”’
Contains the print_tree function for printing a debug representation of the tree
resolve ๐Ÿ”’
Helper trait to calculate dimensions during layout resolution
sys ๐Ÿ”’
Allocator-flexible data types

Traitsยง

MaybeMath
A trait to conveniently calculate minimums and maximums when some data may not be defined
MaybeResolve
Trait to encapsulate behaviour where we need to resolve from a potentially context-dependent size or dimension into a context-independent size or dimension.
ResolveOrZero
Trait to encapsulate behaviour where we need to resolve from a potentially context-dependent size or dimension into a context-independent size or dimension.

Functionsยง

print_tree
Prints a debug representation of the computed layout for a tree of nodes, starting with the passed root node.