This is a simple library providing ParenthesizedC that implements [syn::parse::Parse] and thus, for example, can be used with [syn::parse2]() for the purpose of parsing (C) attribute tokens as in [#[repr(C)]][#\[repr(C)\]] [outer attribute].

Example:

```rust extern crate syn; extern crate outerattribute; extern crate parenthesizedc;

use parenthesizedc::ParenthesizedC; use outerattribute::different_layout::OuterAttribute;

fn main() -> syn::Result<()> { let reprc = syn::parsestr::("#[repr(C)]")?; let reprtranspartent = syn::parsestr::("#[repr(transparent)]")?; assert!(matches!(syn::parse2::(reprc.tokens), Ok())); assert!(matches!(syn::parse2::(reprtranspartent.tokens), Err())); Ok(()) } ```

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.