pub struct ValidatedDisplayList { /* private fields */ }Expand description
Immutable command snapshot whose structure and properties have been checked. Clones share commands without exposing mutation. Validation covers structure, geometry and paint properties, not raster admission or device availability. Tighter consumers must check their limits.
Implementations§
Source§impl ValidatedDisplayList
impl ValidatedDisplayList
Sourcepub fn into_editable(self) -> DisplayList
pub fn into_editable(self) -> DisplayList
Returns an explicitly editable copy, whose consumers must validate again.
Sourcepub fn with_background(self, background: Option<Color>) -> Self
pub fn with_background(self, background: Option<Color>) -> Self
Sets only the output background without invalidating command requirements.
Sourcepub fn preflight(
&self,
limits: ValidationLimits,
) -> Result<SceneStats, ValidationError>
pub fn preflight( &self, limits: ValidationLimits, ) -> Result<SceneStats, ValidationError>
Checks positive structural limits against retained validation requirements. Rewalks commands only when their measured count/depth exceeds the new allowance, preserving the same detailed diagnostic as editable-list preflight.
Sourcepub fn display_list(&self) -> &DisplayList
pub fn display_list(&self) -> &DisplayList
Read-only checked commands and output description.
Sourcepub fn stats(&self) -> SceneStats
pub fn stats(&self) -> SceneStats
Requirements measured by the original full validation.
Methods from Deref<Target = DisplayList>§
Sourcepub fn preflight(
&self,
limits: ValidationLimits,
) -> Result<SceneStats, ValidationError>
pub fn preflight( &self, limits: ValidationLimits, ) -> Result<SceneStats, ValidationError>
Validates all commands, including transparent/offscreen geometry.
Limits count commands and every path verb, and layer nesting determines output depth. This is not a pixel/allocation budget or backend probe.