Enum rapier3d::geometry::TypedShape[][src]

pub enum TypedShape<'a> {
    Ball(&'a Ball),
    Cuboid(&'a Cuboid),
    Capsule(&'a Capsule),
    Segment(&'a Segment),
    Triangle(&'a Triangle),
    TriMesh(&'a TriMesh),
    Polyline(&'a Polyline),
    HalfSpace(&'a HalfSpace),
    HeightField(&'a HeightField),
    Compound(&'a Compound),
    ConvexPolyhedron(&'a ConvexPolyhedron),
    Cylinder(&'a Cylinder),
    Cone(&'a Cone),
    RoundCuboid(&'a RoundShape<Cuboid>),
    RoundTriangle(&'a RoundShape<Triangle>),
    RoundCylinder(&'a RoundShape<Cylinder>),
    RoundCone(&'a RoundShape<Cone>),
    RoundConvexPolyhedron(&'a RoundShape<ConvexPolyhedron>),
    Custom(u32),
}

Enum representing the shape with its actual type

Variants

Ball(&'a Ball)

A ball shape.

Cuboid(&'a Cuboid)

A cuboid shape.

Capsule(&'a Capsule)

A capsule shape.

Segment(&'a Segment)

A segment shape.

Triangle(&'a Triangle)

A triangle shape.

TriMesh(&'a TriMesh)

A triangle mesh shape.

Polyline(&'a Polyline)

A set of segments.

HalfSpace(&'a HalfSpace)

A shape representing a full half-space.

HeightField(&'a HeightField)

A heightfield shape.

Compound(&'a Compound)

A Compound shape.

ConvexPolyhedron(&'a ConvexPolyhedron)

A convex polyhedron.

Cylinder(&'a Cylinder)

A cylindrical shape.

Cone(&'a Cone)

A cylindrical shape.

RoundCuboid(&'a RoundShape<Cuboid>)

A cuboid with rounded corners.

RoundTriangle(&'a RoundShape<Triangle>)

A triangle with rounded corners.

RoundCylinder(&'a RoundShape<Cylinder>)

A cylinder with rounded corners.

RoundCone(&'a RoundShape<Cone>)

A cone with rounded corners.

RoundConvexPolyhedron(&'a RoundShape<ConvexPolyhedron>)

A convex polyhedron with rounded corners.

Custom(u32)

A custom user-defined shape with a type identified by a number.

Trait Implementations

impl<'a> Clone for TypedShape<'a>[src]

impl<'a> Copy for TypedShape<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for TypedShape<'a>

impl<'a> Send for TypedShape<'a>

impl<'a> Sync for TypedShape<'a>

impl<'a> Unpin for TypedShape<'a>

impl<'a> !UnwindSafe for TypedShape<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.