#[non_exhaustive]pub enum LayoutProblem {
Show 22 variants
TooManyNodes,
TooDeep,
TooManyTexts,
TooManyIsolated,
MixedContent,
DisplayOnLeaf,
ContainerFieldOnLeaf,
RootItemField,
GridFieldOnFlex(&'static str),
FlexFieldOnGrid(&'static str),
FlexItemFieldInGrid(&'static str),
GridItemFieldInFlex(&'static str),
TooManyTracks,
RepeatCount,
RepeatInAutoTracks,
AutoRepeatNeedsFixedTracks,
GridLineOutOfRange,
InvalidKeyframes,
OutOfRange,
LengthKeyframesDiffer,
PaintKeyframesDiffer,
TextKeyframesInterpolate,
}Expand description
Why a layout tree is invalid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TooManyNodes
More than MAX_LAYOUT_NODES nodes.
TooDeep
Nodes nested deeper than MAX_LAYOUT_DEPTH.
TooManyTexts
More than MAX_LAYOUT_TEXTS nodes with text.
TooManyIsolated
More than MAX_LAYOUT_ISOLATED nodes with a visual field or hidden
overflow.
MixedContent
A node with more than one of children, text, and shape.
DisplayOnLeaf
display on a node with text or shape content.
ContainerFieldOnLeaf
A container field on a node with text or shape content.
RootItemField
A size, margin, position, or item field on the root.
GridFieldOnFlex(&'static str)
A grid container field (named) on a flex container.
FlexFieldOnGrid(&'static str)
A flex container field (named) on a grid container.
FlexItemFieldInGrid(&'static str)
A flex item field (named) on a grid’s child.
GridItemFieldInFlex(&'static str)
A grid item field (named) on a flex container’s child.
TooManyTracks
More than MAX_GRID_TRACKS explicit tracks on one axis.
RepeatCount
A repeat() count outside 1 to 64.
RepeatInAutoTracks
repeat() in implicit track sizes.
AutoRepeatNeedsFixedTracks
An auto-fill or auto-fit repeat beside another, or with a track
(in it or beside it) without a fixed size.
GridLineOutOfRange
A grid line outside -65 to 65, line 0, or a span outside 1 to 64.
InvalidKeyframes
Keyframes that are empty, out of order, or have an unusable curve.
OutOfRange
A value that is not finite or outside its range.
LengthKeyframesDiffer
Size keyframes that mix a percent with a length.
PaintKeyframesDiffer
Paint keyframes that differ in kind, stop count, or spread.
TextKeyframesInterpolate
A text keyframe whose interpolation is not hold.