Skip to main content

SurfaceArea

Trait SurfaceArea 

Source
pub trait SurfaceArea {
    type Scalar: BaseNum;

    // Required method
    fn surface_area(&self) -> Self::Scalar;
}
Expand description

Shape surface area

Required Associated Types§

Source

type Scalar: BaseNum

Result type returned from surface area computation

Required Methods§

Source

fn surface_area(&self) -> Self::Scalar

Compute surface area

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§