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

pub enum TypedShape<'a> {
Show 19 variants 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),
}
Expand description

Enum representing the shape with its actual type

Variants

Ball(&'a Ball)

A ball shape.

Tuple Fields of Ball

0: &'a Ball
Cuboid(&'a Cuboid)

A cuboid shape.

Tuple Fields of Cuboid

0: &'a Cuboid
Capsule(&'a Capsule)

A capsule shape.

Tuple Fields of Capsule

0: &'a Capsule
Segment(&'a Segment)

A segment shape.

Tuple Fields of Segment

0: &'a Segment
Triangle(&'a Triangle)

A triangle shape.

Tuple Fields of Triangle

0: &'a Triangle
TriMesh(&'a TriMesh)

A triangle mesh shape.

Tuple Fields of TriMesh

0: &'a TriMesh
Polyline(&'a Polyline)

A set of segments.

Tuple Fields of Polyline

0: &'a Polyline
HalfSpace(&'a HalfSpace)

A shape representing a full half-space.

Tuple Fields of HalfSpace

0: &'a HalfSpace
HeightField(&'a HeightField)

A heightfield shape.

Tuple Fields of HeightField

0: &'a HeightField
Compound(&'a Compound)

A Compound shape.

Tuple Fields of Compound

0: &'a Compound
ConvexPolyhedron(&'a ConvexPolyhedron)

A convex polyhedron.

Tuple Fields of ConvexPolyhedron

0: &'a ConvexPolyhedron
Cylinder(&'a Cylinder)

A cylindrical shape.

Tuple Fields of Cylinder

0: &'a Cylinder
Cone(&'a Cone)

A cone shape.

Tuple Fields of Cone

0: &'a Cone
RoundCuboid(&'a RoundShape<Cuboid>)

A cuboid with rounded corners.

Tuple Fields of RoundCuboid

0: &'a RoundShape<Cuboid>
RoundTriangle(&'a RoundShape<Triangle>)

A triangle with rounded corners.

Tuple Fields of RoundTriangle

0: &'a RoundShape<Triangle>
RoundCylinder(&'a RoundShape<Cylinder>)

A cylinder with rounded corners.

Tuple Fields of RoundCylinder

0: &'a RoundShape<Cylinder>
RoundCone(&'a RoundShape<Cone>)

A cone with rounded corners.

Tuple Fields of RoundCone

0: &'a RoundShape<Cone>
RoundConvexPolyhedron(&'a RoundShape<ConvexPolyhedron>)

A convex polyhedron with rounded corners.

Tuple Fields of RoundConvexPolyhedron

0: &'a RoundShape<ConvexPolyhedron>
Custom(u32)

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

Tuple Fields of Custom

0: u32

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s. Read more

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.