pub trait ElementBoundingBox {
// Required method
fn bounding_box(&self, id: ElementId) -> Option<BoundingBox>;
}Expand description
Resolves axis-aligned layout bounds for elements.
Required Methods§
Sourcefn bounding_box(&self, id: ElementId) -> Option<BoundingBox>
fn bounding_box(&self, id: ElementId) -> Option<BoundingBox>
Returns the bounding box of id.
Returns None when id is unknown.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".