Skip to content

Add fast path to into_dimensionality #905

@bluss

Description

@bluss

There are (generic) situations where we use into_dimensionality::<D>() as a no-op, we just don't have a proof in the type system that the two dimensions are equal. The method should have a TypeId (or equivalent based on a new Dimension method) based fast-path that basically transmutes input dimensions to output dimensions, to avoid copying and make the (generated) code simpler.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions