Skip to main content

BrickWidgetExt

Trait BrickWidgetExt 

Source
pub trait BrickWidgetExt: Brick {
    // Provided method
    fn verify_for_render(&self) -> Result<(), String> { ... }
}
Expand description

Extension trait for adding Brick verification to the render pipeline.

Provided Methods§

Source

fn verify_for_render(&self) -> Result<(), String>

Verify this brick before rendering.

Returns an error if any assertion fails.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§