Demonstrate parse_quote in the crate-level documentation
Open
docs
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 374
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 2
Description
This macro is commonly useful for building a syntax tree and should be featured more prominently.
```rust
// Add a trait bound to every type parameter
for param in &mut generics.params {
if let GenericParam::Type(ref mut type_param) = *param {
type_param.bounds.push(parse_quote!(diesel::query_builder::QueryId));
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.