Trait IntoPointMass

Source
pub trait IntoPointMass: Particle + Sized {
    // Provided method
    fn point_mass(
        &self,
    ) -> PointMass<ParticleVector<Self>, ParticleScalar<Self>>
       where Self::Array: ScalarArray { ... }
}
Expand description

Trait to convert a type implementing Particle to a PointMass.

Provided Methods§

Source

fn point_mass(&self) -> PointMass<ParticleVector<Self>, ParticleScalar<Self>>
where Self::Array: ScalarArray,

Converts the particle to a PointMass.

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§