pub trait RectSizedVol: BaseVol {
// Required methods
fn lower_bound_xy(&self) -> Vec2<i32>;
fn upper_bound_xy(&self) -> Vec2<i32>;
// Provided method
fn size_xy(&self) -> Vec2<u32> { ... }
}Expand description
A volume whose cross section with the XY-plane is a rectangle.
Required Methods§
fn lower_bound_xy(&self) -> Vec2<i32>
fn upper_bound_xy(&self) -> Vec2<i32>
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".