attribute_derive::parsing

Trait AttributeBase

Source
pub trait AttributeBase: FromPartial<Self::Partial> {
    type Partial;
}
Expand description

Utility crate holding Self::Partial used in most attribute traits, i.e., FromAttr, AttributeValue, AttributePositional, …

Required Associated Types§

Source

type Partial

Partial type for this attribute. In most cases this can be Self, unless the attribute can be parsed in multiple on-its-own-incomplete parts or needs special handling on the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AttributeBase for TokenTree

Source§

impl AttributeBase for Meta

Source§

impl AttributeBase for Expr

Source§

impl AttributeBase for Member

Source§

impl AttributeBase for GenericParam

Source§

impl AttributeBase for TraitBoundModifier

Source§

impl AttributeBase for TypeParamBound

Source§

impl AttributeBase for WherePredicate

Source§

impl AttributeBase for Lit

Source§

impl AttributeBase for BinOp

Source§

impl AttributeBase for UnOp

Source§

impl AttributeBase for GenericArgument

Source§

impl AttributeBase for Visibility

Source§

impl AttributeBase for ReturnType

Source§

impl AttributeBase for Type

Source§

impl AttributeBase for bool

Source§

impl AttributeBase for char

Source§

impl AttributeBase for f32

Source§

impl AttributeBase for f64

Source§

impl AttributeBase for i8

Source§

impl AttributeBase for i16

Source§

impl AttributeBase for i32

Source§

impl AttributeBase for i64

Source§

impl AttributeBase for i128

Source§

impl AttributeBase for isize

Source§

impl AttributeBase for u8

Source§

impl AttributeBase for u16

Source§

impl AttributeBase for u32

Source§

impl AttributeBase for u64

Source§

impl AttributeBase for u128

Source§

impl AttributeBase for usize

Source§

impl AttributeBase for String

Source§

impl AttributeBase for Group

Source§

impl AttributeBase for Ident

Source§

impl AttributeBase for Literal

Source§

impl AttributeBase for Punct

Source§

impl AttributeBase for TokenStream

Source§

impl AttributeBase for MetaList

Source§

impl AttributeBase for MetaNameValue

Source§

impl AttributeBase for FieldsNamed

Source§

impl AttributeBase for FieldsUnnamed

Source§

impl AttributeBase for Variant

Source§

impl AttributeBase for DeriveInput

Source§

impl AttributeBase for Index

Source§

impl AttributeBase for BoundLifetimes

Source§

impl AttributeBase for ConstParam

Source§

impl AttributeBase for Generics

Source§

impl AttributeBase for TraitBound

Source§

impl AttributeBase for TypeParam

Source§

impl AttributeBase for WhereClause

Source§

impl AttributeBase for Lifetime

Source§

impl AttributeBase for LitBool

Source§

impl AttributeBase for LitByteStr

Source§

impl AttributeBase for LitChar

Source§

impl AttributeBase for LitFloat

Source§

impl AttributeBase for LitInt

Source§

impl AttributeBase for LitStr

Source§

impl AttributeBase for Macro

Source§

impl AttributeBase for AngleBracketedGenericArguments

Source§

impl AttributeBase for ParenthesizedGenericArguments

Source§

impl AttributeBase for Path

Source§

impl AttributeBase for PathSegment

Source§

impl AttributeBase for Abstract

Source§

impl AttributeBase for And

Source§

impl AttributeBase for AndAnd

Source§

impl AttributeBase for AndEq

Source§

impl AttributeBase for As

Source§

impl AttributeBase for Async

Source§

impl AttributeBase for At

Source§

impl AttributeBase for Auto

Source§

impl AttributeBase for Await

Source§

impl AttributeBase for Become

Source§

impl AttributeBase for Box

Source§

impl AttributeBase for Break

Source§

impl AttributeBase for Caret

Source§

impl AttributeBase for CaretEq

Source§

impl AttributeBase for Colon

Source§

impl AttributeBase for Comma

Source§

impl AttributeBase for Const

Source§

impl AttributeBase for Continue

Source§

impl AttributeBase for Crate

Source§

impl AttributeBase for Default

Source§

impl AttributeBase for Do

Source§

impl AttributeBase for Dollar

Source§

impl AttributeBase for Dot

Source§

impl AttributeBase for DotDot

Source§

impl AttributeBase for DotDotDot

Source§

impl AttributeBase for DotDotEq

Source§

impl AttributeBase for Dyn

Source§

impl AttributeBase for Else

Source§

impl AttributeBase for Enum

Source§

impl AttributeBase for Eq

Source§

impl AttributeBase for EqEq

Source§

impl AttributeBase for Extern

Source§

impl AttributeBase for FatArrow

Source§

impl AttributeBase for Final

Source§

impl AttributeBase for Fn

Source§

impl AttributeBase for For

Source§

impl AttributeBase for Ge

Source§

impl AttributeBase for Gt

Source§

impl AttributeBase for If

Source§

impl AttributeBase for Impl

Source§

impl AttributeBase for In

Source§

impl AttributeBase for LArrow

Source§

impl AttributeBase for Le

Source§

impl AttributeBase for Let

Source§

impl AttributeBase for Loop

Source§

impl AttributeBase for Lt

Source§

impl AttributeBase for Macro

Source§

impl AttributeBase for Match

Source§

impl AttributeBase for Minus

Source§

impl AttributeBase for MinusEq

Source§

impl AttributeBase for Mod

Source§

impl AttributeBase for Move

Source§

impl AttributeBase for Mut

Source§

impl AttributeBase for Ne

Source§

impl AttributeBase for Not

Source§

impl AttributeBase for Or

Source§

impl AttributeBase for OrEq

Source§

impl AttributeBase for OrOr

Source§

impl AttributeBase for Override

Source§

impl AttributeBase for PathSep

Source§

impl AttributeBase for Percent

Source§

impl AttributeBase for PercentEq

Source§

impl AttributeBase for Plus

Source§

impl AttributeBase for PlusEq

Source§

impl AttributeBase for Pound

Source§

impl AttributeBase for Priv

Source§

impl AttributeBase for Pub

Source§

impl AttributeBase for Question

Source§

impl AttributeBase for RArrow

Source§

impl AttributeBase for Ref

Source§

impl AttributeBase for Return

Source§

impl AttributeBase for SelfType

Source§

impl AttributeBase for SelfValue

Source§

impl AttributeBase for Semi

Source§

impl AttributeBase for Shl

Source§

impl AttributeBase for ShlEq

Source§

impl AttributeBase for Shr

Source§

impl AttributeBase for ShrEq

Source§

impl AttributeBase for Slash

Source§

impl AttributeBase for SlashEq

Source§

impl AttributeBase for Star

Source§

impl AttributeBase for StarEq

Source§

impl AttributeBase for Static

Source§

impl AttributeBase for Struct

Source§

impl AttributeBase for Super

Source§

impl AttributeBase for Tilde

Source§

impl AttributeBase for Trait

Source§

impl AttributeBase for Try

Source§

impl AttributeBase for Type

Source§

impl AttributeBase for Typeof

Source§

impl AttributeBase for Underscore

Source§

impl AttributeBase for Union

Source§

impl AttributeBase for Unsafe

Source§

impl AttributeBase for Unsized

Source§

impl AttributeBase for Use

Source§

impl AttributeBase for Virtual

Source§

impl AttributeBase for Where

Source§

impl AttributeBase for While

Source§

impl AttributeBase for Yield

Source§

impl AttributeBase for Abi

Source§

impl AttributeBase for BareFnArg

Source§

impl AttributeBase for TypeArray

Source§

impl AttributeBase for TypeBareFn

Source§

impl AttributeBase for TypeGroup

Source§

impl AttributeBase for TypeImplTrait

Source§

impl AttributeBase for TypeInfer

Source§

impl AttributeBase for TypeMacro

Source§

impl AttributeBase for TypeNever

Source§

impl AttributeBase for TypeParen

Source§

impl AttributeBase for TypePath

Source§

impl AttributeBase for TypePtr

Source§

impl AttributeBase for TypeReference

Source§

impl AttributeBase for TypeSlice

Source§

impl AttributeBase for TypeTraitObject

Source§

impl AttributeBase for TypeTuple

Source§

impl<T: AttributeBase> AttributeBase for Option<T>

Source§

impl<T: AttributeBase> AttributeBase for Vec<T>

Implementors§