Skip to content

Is the reason for this crate still valid with const generics? If so, maybe update docs. #135

Closed
@deepink-mas

Description

@deepink-mas

This is the motivating example for this crate (slight difference between README and docs):

struct Foo<T, N> {
    data: [T; N]
}

Could this not be written (in recent Rust versions) as:

struct Foo<T, const N: usize> {
    data: [T; N]
}

If not, maybe update the motivating example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions