Skip to content

Make constructors const #388

@Pratyush

Description

@Pratyush

Right now, when a struct has a trait bound (e.g. struct QuadExtField<P: QuadExtConfig>, we cannot make inherent impl methods const due to the trait bound. Once rust-lang/rust#93827 lands, we should change as many methods as possible to be const. When this is done for the new constructors, this can help us get rid of the QuadExt and CubicExt macros that were added in #379.

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-easyDifficulty: easyT-featureType: new featuresT-refactorType: cleanup/refactor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions