Skip to content

add: const witness #439

@dzmitry-lahoda

Description

@dzmitry-lahoda

problem

rust has very limited typing option for const parameters

solution

use witness types with const function https://github.com/ergoplatform/bounded-vec/blob/39207d4a7bfcd3f22e542bdbd7b47f650a555417/src/bounded_vec.rs#L40

to type intricate constraints mixing consts and types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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