Trait attribute_derive::parsing::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.

Object Safety§

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

§

type Partial = 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

§

type Partial = f32

source§

impl AttributeBase for f64

§

type Partial = f64

source§

impl AttributeBase for i8

§

type Partial = i8

source§

impl AttributeBase for i16

§

type Partial = i16

source§

impl AttributeBase for i32

§

type Partial = i32

source§

impl AttributeBase for i64

§

type Partial = i64

source§

impl AttributeBase for i128

source§

impl AttributeBase for isize

source§

impl AttributeBase for u8

§

type Partial = u8

source§

impl AttributeBase for u16

§

type Partial = u16

source§

impl AttributeBase for u32

§

type Partial = u32

source§

impl AttributeBase for u64

§

type Partial = 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

§

type Partial = And

source§

impl AttributeBase for AndAnd

source§

impl AttributeBase for AndEq

source§

impl AttributeBase for As

§

type Partial = As

source§

impl AttributeBase for Async

source§

impl AttributeBase for At

§

type Partial = At

source§

impl AttributeBase for Auto

source§

impl AttributeBase for Await

source§

impl AttributeBase for Become

source§

impl AttributeBase for Box

§

type Partial = 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

§

type Partial = Do

source§

impl AttributeBase for Dollar

source§

impl AttributeBase for Dot

§

type Partial = Dot

source§

impl AttributeBase for DotDot

source§

impl AttributeBase for DotDotDot

source§

impl AttributeBase for DotDotEq

source§

impl AttributeBase for Dyn

§

type Partial = Dyn

source§

impl AttributeBase for Else

source§

impl AttributeBase for Enum

source§

impl AttributeBase for Eq

§

type Partial = 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

§

type Partial = Fn

source§

impl AttributeBase for For

§

type Partial = For

source§

impl AttributeBase for Ge

§

type Partial = Ge

source§

impl AttributeBase for Gt

§

type Partial = Gt

source§

impl AttributeBase for If

§

type Partial = If

source§

impl AttributeBase for Impl

source§

impl AttributeBase for In

§

type Partial = In

source§

impl AttributeBase for LArrow

source§

impl AttributeBase for Le

§

type Partial = Le

source§

impl AttributeBase for Let

§

type Partial = Let

source§

impl AttributeBase for Loop

source§

impl AttributeBase for Lt

§

type Partial = 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

§

type Partial = Mod

source§

impl AttributeBase for Move

source§

impl AttributeBase for Mut

§

type Partial = Mut

source§

impl AttributeBase for Ne

§

type Partial = Ne

source§

impl AttributeBase for Not

§

type Partial = Not

source§

impl AttributeBase for Or

§

type Partial = 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

§

type Partial = Pub

source§

impl AttributeBase for Question

source§

impl AttributeBase for RArrow

source§

impl AttributeBase for Ref

§

type Partial = 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

§

type Partial = Shl

source§

impl AttributeBase for ShlEq

source§

impl AttributeBase for Shr

§

type Partial = 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

§

type Partial = 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

§

type Partial = 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

§

type Partial = 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§