Skip to content

rust-lang/project-const-generics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2e1cdf0 Β· Aug 13, 2022

History

81 Commits
Aug 13, 2022
May 25, 2021
Feb 5, 2022
Feb 16, 2022
Mar 22, 2022
Mar 23, 2022
Jan 25, 2021
Jan 25, 2021
Jan 25, 2021
Mar 22, 2022
Mar 24, 2022
Jul 23, 2021
Jul 23, 2021
Jul 23, 2021
Feb 5, 2022

πŸ‘‹πŸ½ Const Generics Project Group

project group status: active

The const generics project group implements and designs the const_generics feature. Please refer to our charter for more information on our goals and current scope.

Examples:

struct Foo<const N: usize> {
    field: [u8; N],
}

fn foo<const N: usize>() -> Foo<N> {
    Foo {
        field: [0; N],
    }
}

fn main() {
    match foo::<3>().field {
        [0, 0, 0] => {} // ok
        [_x, _y, _z] => panic!(),
    }
}

Welcome to the repository for the Const Generics Project Group! This is the repository we use to organise our work. Please refer to our charter as well as our github pages website for more information on our goals and current scope.

How Can I Get Involved?

You can find a list of the current members available on rust-lang/team.

If you'd like to participate be sure to check out the relevant stream on zulip, feel free to introduce yourself over there and ask us any questions you have.

Building Documentation

This repository is also an mdbook project. You can view and build it using the following command.

mdbook-skill-tree install && mdbook serve