Trait Massive

Source
pub trait Massive: Bounded + Inertial {
    // Required method
    fn drag(&self) -> f64;

    // Provided method
    fn density(&self) -> Option<f64> { ... }
}
Expand description

A bounded object with mass

Required Methods§

Source

fn drag(&self) -> f64

Provided Methods§

Source

fn density(&self) -> Option<f64>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§