pub trait Measured3d {
// Required methods
fn area(&self) -> f32;
fn volume(&self) -> f32;
}
Expand description
A trait for getting measurements of 3D shapes
pub trait Measured3d {
// Required methods
fn area(&self) -> f32;
fn volume(&self) -> f32;
}
A trait for getting measurements of 3D shapes