Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Missing Generics section. #9023

Closed
toqueteos opened this issue Sep 6, 2013 · 1 comment
Closed

docs: Missing Generics section. #9023

toqueteos opened this issue Sep 6, 2013 · 1 comment
Labels
A-grammar Area: The grammar of Rust

Comments

@toqueteos
Copy link
Contributor

Most "generic" mentions on manual are for "generic functions", a new section, similar to the one found on the tutorial would be a nice addition.

There are more than generic functions and traits, e.g:

struct Stack<T> {
    elements: ~[T]
}

enum Option<T> {
    Some(T),
    None
}

That new section would be a nice place to write a grammar for generic declarations, which would be definitely helpful for #9022.

@steveklabnik
Copy link
Member

I am pretty sure this can be closed by now.

flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2022
…=xFrednet

Add description meta tag for lint list

closes rust-lang#8975

changelog:none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-grammar Area: The grammar of Rust
Projects
None yet
Development

No branches or pull requests

3 participants