|
1 |
| -# {{GROUP_NAME}} {{GROUP_TYPE}} Group |
2 |
| -<!-- |
3 |
| - This is the template for creating project groups in rust-lang. Be sure to go |
4 |
| - through all sections marked with `**FIX ME**`, and make sure that the text is |
5 |
| - correct, and feel free to replace/remove any part that's not relevant to |
6 |
| - your group. |
7 |
| -
|
8 |
| - All of the text across all of the initial files uses the same group of |
9 |
| - variables to allow for easy search and replace. They are listed below. |
10 |
| -
|
11 |
| - Example sed command: `sed -i '' 's/{{GROUP_NAME}}/Inline ASM/g' ./**/*.md` |
12 |
| - *Note* the `-i ''` is important as it is required on some platforms e.g. macOS |
13 |
| -
|
14 |
| - * {{GROUP_NAME}} -> The display name of your group e.g. "Inline ASM". |
15 |
| - * {{GROUP_SLUG}} -> The url slug name of your group used for |
16 |
| - `rust-lang/team` and repo name. e.g. "pg-inline-asm". |
17 |
| - * {{CHAT_PLATFORM}} -> The name of your chat app e.g. "Zulip". |
18 |
| - * {{CHAT_LINK}} -> The hyperlink to your discussions on the chat app |
19 |
| - e.g. "https://rust-lang.zulipchat.com/#narrow/stream/216763-project-inline-asm". |
20 |
| ---> |
| 1 | +# Const Generics Project Group |
21 | 2 |
|
22 | 3 | <!--
|
23 | 4 | Status badge advertising the project as being actively worked on. When the
|
24 | 5 | project has finished be sure to replace the active badge with a badge
|
25 | 6 | like: https://img.shields.io/badge/status-archived-grey.svg
|
26 | 7 | -->
|
27 | 8 | 
|
| 9 | +<!-- |
| 10 | +FIXME(website) |
28 | 11 | [][gh-pages]
|
29 |
| - |
30 |
| - |
31 |
| -**FIX ME** |
| 12 | +--> |
| 13 | +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. |
| 14 | + |
| 15 | +Examples: |
| 16 | + |
| 17 | +```rust |
| 18 | +struct Foo<const N: usize> { |
| 19 | + field: [u8; N], |
| 20 | +} |
| 21 | + |
| 22 | +fn foo<const N: usize>() -> Foo<N> { |
| 23 | + Foo { |
| 24 | + field: [0; N], |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +fn main() { |
| 29 | + match foo::<3>().field { |
| 30 | + [0, 0, 0] => {} // ok |
| 31 | + [_x, _y, _z] => panic!(), |
| 32 | + } |
| 33 | +} |
| 34 | +``` |
32 | 35 |
|
33 | 36 | <!--
|
34 |
| - Provide a short introduction about your project group. Make sure to include any |
35 |
| - relevant links to information about your group. |
36 |
| ---> |
| 37 | +FIXME(website): do we want a website for this? |
37 | 38 |
|
38 |
| -Welcome to the repository for the {{GROUP_NAME}} Project Group! This is the |
| 39 | +Welcome to the repository for the Const Generics Project Group! This is the |
39 | 40 | repository we use to organise our work. Please refer to our [charter] as well
|
40 | 41 | as our [github pages website][gh-pages] for more information on our goals and
|
41 | 42 | current scope.
|
42 |
| - |
43 |
| -[charter]: ./CHARTER.md |
44 | 43 | [gh-pages]: https://rust-lang.github.io/{{GROUP_SLUG}}
|
45 | 44 |
|
46 |
| -**/FIX ME** |
47 | 45 |
|
| 46 | +**/FIX ME** |
| 47 | +--> |
48 | 48 |
|
49 |
| -## How Can I Get Involved? |
| 49 | +[charter]: ./CHARTER.md |
50 | 50 |
|
51 |
| -**FIX ME** |
52 | 51 |
|
53 |
| -<!-- |
54 |
| - List ways that people from outside your group can get involved and potentially |
55 |
| - become members, include what meetings your team has, and how a person could |
56 |
| - start participating and contributing. Make sure to mention the main platform |
57 |
| - your group hosts its discussions. Be sure to also include links to any |
58 |
| - other projects that your group maintains. |
59 |
| ---> |
| 52 | +## How Can I Get Involved? |
60 | 53 |
|
61 | 54 | [You can find a list of the current members available
|
62 | 55 | on `rust-lang/team`.][team-toml]
|
63 | 56 |
|
64 |
| -If you'd like to participate be sure to check out any of our [open issues] on this |
65 |
| -repository. |
66 |
| - |
67 |
| -We also participate on [{{CHAT_PLATFORM}}][chat-link], feel free to introduce |
| 57 | +If you'd like to participate be sure to check out the relevant stream on [zulip][chat-link], feel free to introduce |
68 | 58 | yourself over there and ask us any questions you have.
|
69 | 59 |
|
70 |
| - |
71 | 60 | [open issues]: /issues
|
72 |
| -[chat-link]: {{CHAT_LINK}} |
73 |
| -[team-toml]: https://github.com/rust-lang/team/blob/master/teams/{{GROUP_TYPE}}-{{GROUP_SLUG}}.toml |
74 |
| - |
75 |
| -**/FIX ME** |
| 61 | +[chat-link]: https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics |
| 62 | +[team-toml]: https://github.com/rust-lang/team/blob/master/teams/project-const-generics.toml |
76 | 63 |
|
77 | 64 | ## Building Documentation
|
78 | 65 | This repository is also an mdbook project. You can view and build it using the
|
|
0 commit comments