Expand description
A cache for storing the results of layout computation
Structsยง
- Cache
- A cache for caching the results of a sizing a Grid Item or Flexbox Item
- Cache
Entry ๐ - Cached intermediate layout results
- Cache
Key ๐ - Space-optimised cache key that packs bits into as small a size as possible
Enumsยง
- Clear
State - Clear operation outcome. See
Cache::clear
Constantsยง
- BOTH_
SIGN_ ๐BITS_ MASK - Mask of both sign bits (used to compute NON_SIGN_BITS_MASK)
- CACHE_
SIZE ๐ - The number of cache entries for each node in the tree
- INFINITY_
BITS ๐ f32::INFINITYas a u32- NEG_
INFINITY_ ๐BITS f32::NEG_INFINITYas a u32- NON_
SIGN_ ๐BITS_ MASK - Mask of excluding the sign bits (used when setting/getting the size excluding the packed bits)
- SIGN_
BIT_ ๐1 - The sign bit of the first f32
- SIGN_
BIT_ ๐2 - The sign bit of the second f32
- X_
AXIS_ ๐VALUE_ MASK - Mask which includes only the bits which encode the x-axis value that we can use to ignore the y-axis value when comparing a cache key.
Functionsยง
- available_
space_ ๐cache_ key - Pack
AvailableSpaceintou32 - mixed_
cache_ ๐key - Encodes combination of a
known_dimension(Option) and AvailableSpacein a single dimension into a cache key in a single dimension. - option_
cache_ ๐key - Pack
Option<f32>intou32 - size_
available_ ๐space_ cache_ key - Pack
Size<AvailableSpace>intou64 - size_
mixed_ ๐cache_ key - Encodes combination of a
known_dimension(Option) and AvailableSpacein two dimensions into a cache key in a single dimension. - size_
option_ ๐cache_ key - Pack
Size<Option<f32>>intou64