Lines Matching refs:attr
150 /// let attr: ItemMod = parse_quote! {
162 /// assert_eq!(doc, attr);
202 /// let attr: Attribute = parse_quote! {
206 /// if attr.path().is_ident("precondition") {
207 /// let precondition: Expr = attr.parse_args()?;
225 /// let attr: Attribute = parse_quote! {
229 /// let bwom = attr.parse_args_with(Attribute::parse_outer)?;
232 /// // let bwom: Attribute = attr.parse_args()?;
287 /// for attr in &input.attrs {
288 /// if attr.path().is_ident("repr") {
289 /// attr.parse_nested_meta(|meta| {
353 /// for attr in &input.attrs {
354 /// if attr.path().is_ident("repr") {
355 /// let nested = attr.parse_args_with(Punctuated::<Meta, Token![,]>::parse_terminated)?;
596 fn is_outer(attr: &&Attribute) -> bool {
597 match attr.style {
606 fn is_inner(attr: &&Attribute) -> bool {
607 match attr.style {