Enum parry2d::shape::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),
    ConvexPolygon(&'a ConvexPolygon),
    RoundCuboid(&'a RoundCuboid),
    RoundTriangle(&'a RoundTriangle),
    RoundConvexPolygon(&'a RoundConvexPolygon),
    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.

ConvexPolygon(&'a ConvexPolygon)
RoundCuboid(&'a RoundCuboid)

A cuboid with rounded corners.

RoundTriangle(&'a RoundTriangle)

A triangle with rounded corners.

RoundConvexPolygon(&'a RoundConvexPolygon)

A convex polygon 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> Az for T[src]

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

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

impl<T> CheckedAs for T[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<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

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.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]