dtolnay / dtolnay/syn

Demonstrate parse_quote in the crate-level documentation

Open
#326 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.