pub trait IntoPointMass: Particle + Sized {
// Provided method
fn point_mass(
&self,
) -> PointMass<ParticleVector<Self>, ParticleScalar<Self>>
where Self::Array: ScalarArray { ... }
}
Provided Methods§
Sourcefn point_mass(&self) -> PointMass<ParticleVector<Self>, ParticleScalar<Self>>where
Self::Array: ScalarArray,
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.