rapier2d::geometry

Trait TypedSimdCompositeShape

Source
pub trait TypedSimdCompositeShape {
    type PartShape: Shape + ?Sized;
    type PartNormalConstraints: NormalConstraints + ?Sized;
    type PartId: IndexedData;

    // Required methods
    fn map_typed_part_at(
        &self,
        shape_id: Self::PartId,
        f: impl FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &Self::PartShape, Option<&Self::PartNormalConstraints>),
    );
    fn map_untyped_part_at(
        &self,
        shape_id: Self::PartId,
        f: impl FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &(dyn Shape + 'static), Option<&(dyn NormalConstraints + 'static)>),
    );
    fn typed_qbvh(&self) -> &Qbvh<Self::PartId>;
}

Required Associated Types§

Required Methods§

Source

fn map_typed_part_at( &self, shape_id: Self::PartId, f: impl FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &Self::PartShape, Option<&Self::PartNormalConstraints>), )

Source

fn map_untyped_part_at( &self, shape_id: Self::PartId, f: impl FnMut(Option<&Isometry<f32, Unit<Complex<f32>>, 2>>, &(dyn Shape + 'static), Option<&(dyn NormalConstraints + 'static)>), )

Source

fn typed_qbvh(&self) -> &Qbvh<Self::PartId>

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§