pub trait ConvertParsedwhere
    Self: Sized,
    Self::Type: Error,{
    type Type;

    // Required method
    fn convert(value: Self::Type) -> Result<Self>;

    // Provided methods
    fn default_by_default() -> bool { ... }
    fn default() -> Self { ... }
    fn as_flag() -> Option<Self::Type> { ... }
    fn aggregate(
        this: Option<IdentValue<Self::Type>>,
        other: Option<IdentValue<Self::Type>>,
        error_msg: &str
    ) -> Result<Option<IdentValue<Self::Type>>> { ... }
}
Expand description

Helper trait to convert syn types implementing Parse like LitStr to rust types like String

You probably don’t need to implement this trait, as most syn types like LitStr and Type or that have a direct equivalent in those like String, char or f32 are already implemented. A special treatment have Vecs which are parsed using the helper Array with the syntax [a, b, c] and Options that will be None if not specified and Some when the value is specified via the attribute. It is not specified via Some(value) but as just value.

Required Associated Types§

source

type Type

The type this can be converted from

Required Methods§

source

fn convert(value: Self::Type) -> Result<Self>

This takes Self::Type and converts it to Self.

This can return an error, e.g. when parsing an integer too large for a u8 into an u8

Provided Methods§

source

fn default_by_default() -> bool

Should values of this type return their default when they are not specified even when the default flag is not specified (only returns true for Option, Vec and bool currently)

source

fn default() -> Self

The default value, this is necessary to implement the implicit default behavior of Option and bool.

This is necessary as the Default trait cannot be used in expanded code, but normally you can easily implement it using it:

impl ConvertParsed for bool {
    fn default() -> Self {
        Default::default()
    }
}
source

fn as_flag() -> Option<Self::Type>

Returns the value when this type is specified as flag i.e. just #[attr(default)] instead of #[attr(default=true)]. This relies on Self::default.

source

fn aggregate( this: Option<IdentValue<Self::Type>>, other: Option<IdentValue<Self::Type>>, error_msg: &str ) -> Result<Option<IdentValue<Self::Type>>>

Should values of this type be aggregated instead of conflict if specified multiple times

Currently this is only implemented for Arrays

Implementations on Foreign Types§

source§

impl ConvertParsed for Enum

§

type Type = Enum

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Async

§

type Type = Async

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprContinue

§

type Type = ExprContinue

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprBlock

§

type Type = ExprBlock

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for f32

source§

impl ConvertParsed for GenericParam

§

type Type = GenericParam

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprPath

§

type Type = ExprPath

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Await

§

type Type = Await

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LitFloat

§

type Type = LitFloat

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Priv

§

type Type = Priv

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ImplItemMethod

§

type Type = ImplItemMethod

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprBinary

§

type Type = ExprBinary

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Receiver

§

type Type = Receiver

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Member

§

type Type = Member

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Mut

§

type Type = Mut

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for usize

source§

impl ConvertParsed for Dyn

§

type Type = Dyn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeReference

§

type Type = TypeReference

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for File

§

type Type = File

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemMacro2

§

type Type = ItemMacro2

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemUse

§

type Type = ItemUse

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Star

§

type Type = Star

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for BareFnArg

§

type Type = BareFnArg

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitItem

§

type Type = TraitItem

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Tilde

§

type Type = Tilde

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ForeignItemStatic

§

type Type = ForeignItemStatic

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ImplItem

§

type Type = ImplItem

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Trait

§

type Type = Trait

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for PathSegment

§

type Type = PathSegment

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeBareFn

§

type Type = TypeBareFn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for FieldsUnnamed

§

type Type = FieldsUnnamed

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Lt

§

type Type = Lt

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemMod

§

type Type = ItemMod

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for RemEq

§

type Type = RemEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprRange

§

type Type = ExprRange

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprIf

§

type Type = ExprIf

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemTrait

§

type Type = ItemTrait

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprMatch

§

type Type = ExprMatch

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ShlEq

§

type Type = ShlEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Punct

§

type Type = Punct

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Signature

§

type Type = Signature

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprCall

§

type Type = ExprCall

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Abi

§

type Type = Abi

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for i64

source§

impl ConvertParsed for WherePredicate

§

type Type = WherePredicate

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for i8

source§

impl ConvertParsed for ReturnType

§

type Type = ReturnType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Crate

§

type Type = Crate

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Ref

§

type Type = Ref

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprTry

§

type Type = ExprTry

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Ne

§

type Type = Ne

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Super

§

type Type = Super

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for DivEq

§

type Type = DivEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for GenericMethodArgument

source§

impl ConvertParsed for ExprStruct

§

type Type = ExprStruct

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprAsync

§

type Type = ExprAsync

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Dot3

§

type Type = Dot3

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Auto

§

type Type = Auto

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeMacro

§

type Type = TypeMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Caret

§

type Type = Caret

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for AddEq

§

type Type = AddEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprReturn

§

type Type = ExprReturn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Impl

§

type Type = Impl

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for FatArrow

§

type Type = FatArrow

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemTraitAlias

§

type Type = ItemTraitAlias

source§

fn convert(s: Self) -> Result<Self>

source§

impl<Output, Parsed> ConvertParsed for Option<Output>where Output: ConvertParsed<Type = Parsed>, Parsed: Error + Clone,

§

type Type = Parsed

source§

fn convert(s: Parsed) -> Result<Self>

source§

fn default_by_default() -> bool

source§

fn default() -> Self

source§

impl ConvertParsed for Meta

§

type Type = Meta

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for EqEq

§

type Type = EqEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LitInt

§

type Type = LitInt

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ImplItemMacro

§

type Type = ImplItemMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Return

§

type Type = Return

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemUnion

§

type Type = ItemUnion

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprClosure

§

type Type = ExprClosure

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for u16

source§

impl ConvertParsed for Unsized

§

type Type = Unsized

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Final

§

type Type = Final

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Or

§

type Type = Or

source§

fn convert(s: Self) -> Result<Self>

source§

impl<Output, Parsed> ConvertParsed for Vec<Output>where Output: ConvertParsed<Type = Parsed>, Parsed: Clone,

§

type Type = Array<Parsed>

source§

fn convert(array: Array<Parsed>) -> Result<Self>

source§

fn aggregate( this: Option<IdentValue<Self::Type>>, other: Option<IdentValue<Self::Type>>, _: &str ) -> Result<Option<IdentValue<Self::Type>>>

source§

impl ConvertParsed for i16

source§

impl ConvertParsed for ExprRepeat

§

type Type = ExprRepeat

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LifetimeDef

§

type Type = LifetimeDef

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprLit

§

type Type = ExprLit

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeParamBound

§

type Type = TypeParamBound

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Arm

§

type Type = Arm

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Add

§

type Type = Add

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Sub

§

type Type = Sub

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Colon2

§

type Type = Colon2

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Label

§

type Type = Label

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Move

§

type Type = Move

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for DeriveInput

§

type Type = DeriveInput

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprUnsafe

§

type Type = ExprUnsafe

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for SelfValue

§

type Type = SelfValue

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for MetaList

§

type Type = MetaList

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for String

source§

impl ConvertParsed for Use

§

type Type = Use

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeImplTrait

§

type Type = TypeImplTrait

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Else

§

type Type = Else

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemStruct

§

type Type = ItemStruct

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemImpl

§

type Type = ItemImpl

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Box

§

type Type = Box

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for And

§

type Type = And

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ParenthesizedGenericArguments

source§

impl ConvertParsed for TraitBoundModifier

§

type Type = TraitBoundModifier

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitItemMethod

§

type Type = TraitItemMethod

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Do

§

type Type = Do

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprTryBlock

§

type Type = ExprTryBlock

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for BoundLifetimes

§

type Type = BoundLifetimes

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitItemConst

§

type Type = TraitItemConst

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeGroup

§

type Type = TypeGroup

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Ident

§

type Type = Ident

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for FieldValue

§

type Type = FieldValue

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for FnArg

§

type Type = FnArg

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for AndEq

§

type Type = AndEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for isize

source§

impl ConvertParsed for bool

§

type Type = LitBool

source§

fn convert(value: Self::Type) -> Result<Self>

source§

fn default_by_default() -> bool

source§

fn default() -> Self

source§

fn as_flag() -> Option<Self::Type>

source§

impl ConvertParsed for Pound

§

type Type = Pound

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeSlice

§

type Type = TypeSlice

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for For

§

type Type = For

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Match

§

type Type = Match

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Type

§

type Type = Type

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Path

§

type Type = Path

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprAssignOp

§

type Type = ExprAssignOp

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemEnum

§

type Type = ItemEnum

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ForeignItemMacro

§

type Type = ForeignItemMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Override

§

type Type = Override

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LitChar

§

type Type = LitChar

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Default

§

type Type = Default

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypePath

§

type Type = TypePath

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeTraitObject

§

type Type = TypeTraitObject

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for u32

source§

impl ConvertParsed for Dollar

§

type Type = Dollar

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for SubEq

§

type Type = SubEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Question

§

type Type = Question

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypePtr

§

type Type = TypePtr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Continue

§

type Type = Continue

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TokenTree

§

type Type = TokenTree

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Abstract

§

type Type = Abstract

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Pub

§

type Type = Pub

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Let

§

type Type = Let

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Visibility

§

type Type = Visibility

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemExternCrate

§

type Type = ItemExternCrate

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Union

§

type Type = Union

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for If

§

type Type = If

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprLoop

§

type Type = ExprLoop

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for MetaNameValue

§

type Type = MetaNameValue

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Pat

§

type Type = Pat

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Gt

§

type Type = Gt

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for FieldsNamed

§

type Type = FieldsNamed

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LitByteStr

§

type Type = LitByteStr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Type

§

type Type = Type

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Ge

§

type Type = Ge

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for u8

source§

impl ConvertParsed for Variant

§

type Type = Variant

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ForeignItem

§

type Type = ForeignItem

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprWhile

§

type Type = ExprWhile

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Index

§

type Type = Index

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprType

§

type Type = ExprType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprBreak

§

type Type = ExprBreak

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Shl

§

type Type = Shl

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for AngleBracketedGenericArguments

source§

impl ConvertParsed for ForeignItemFn

§

type Type = ForeignItemFn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Expr

§

type Type = Expr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for i128

source§

impl ConvertParsed for OrEq

§

type Type = OrEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Static

§

type Type = Static

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprForLoop

§

type Type = ExprForLoop

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Constraint

§

type Type = Constraint

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Generics

§

type Type = Generics

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Block

§

type Type = Block

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprArray

§

type Type = ExprArray

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeParam

§

type Type = TypeParam

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Break

§

type Type = Break

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for MulEq

§

type Type = MulEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for While

§

type Type = While

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Eq

§

type Type = Eq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Lifetime

§

type Type = Lifetime

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Underscore

§

type Type = Underscore

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TokenStream

Try to avoid using this, as it will consume everything behind, so it needs to be defined as the last parameter.

In the future there might be something to allow better handling of this (maybe by putting it into ())

§

type Type = TokenStream

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemConst

§

type Type = ItemConst

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Fn

§

type Type = Fn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemFn

§

type Type = ItemFn

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Binding

§

type Type = Binding

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Lit

§

type Type = Lit

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Comma

§

type Type = Comma

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for DotDotEq

§

type Type = DotDotEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemType

§

type Type = ItemType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Item

§

type Type = Item

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for At

§

type Type = At

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Stmt

§

type Type = Stmt

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Macro

§

type Type = Macro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Group

§

type Type = Group

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprTuple

§

type Type = ExprTuple

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for UseTree

§

type Type = UseTree

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprMethodCall

§

type Type = ExprMethodCall

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Rem

§

type Type = Rem

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Semi

§

type Type = Semi

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Dot2

§

type Type = Dot2

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ForeignItemType

§

type Type = ForeignItemType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for char

source§

impl ConvertParsed for Div

§

type Type = Div

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ImplItemType

§

type Type = ImplItemType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for As

§

type Type = As

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Mod

§

type Type = Mod

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprLet

§

type Type = ExprLet

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Bang

§

type Type = Bang

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ConstParam

§

type Type = ConstParam

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprBox

§

type Type = ExprBox

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for f64

source§

impl ConvertParsed for TypeTuple

§

type Type = TypeTuple

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for OrOr

§

type Type = OrOr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Shr

§

type Type = Shr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ImplItemConst

§

type Type = ImplItemConst

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for RangeLimits

§

type Type = RangeLimits

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for GenericArgument

§

type Type = GenericArgument

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Loop

§

type Type = Loop

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Typeof

§

type Type = Typeof

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for NestedMeta

§

type Type = NestedMeta

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeArray

§

type Type = TypeArray

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprParen

§

type Type = ExprParen

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for UnOp

§

type Type = UnOp

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprMacro

§

type Type = ExprMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeNever

§

type Type = TypeNever

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Unsafe

§

type Type = Unsafe

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for WhereClause

§

type Type = WhereClause

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Try

§

type Type = Try

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprReference

§

type Type = ExprReference

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemStatic

§

type Type = ItemStatic

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemForeignMod

§

type Type = ItemForeignMod

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprIndex

§

type Type = ExprIndex

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Macro

§

type Type = Macro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for In

§

type Type = In

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Const

§

type Type = Const

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ItemMacro

§

type Type = ItemMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Le

§

type Type = Le

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitItemType

§

type Type = TraitItemType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for BinOp

§

type Type = BinOp

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Where

§

type Type = Where

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprAssign

§

type Type = ExprAssign

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Virtual

§

type Type = Virtual

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprUnary

§

type Type = ExprUnary

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprYield

§

type Type = ExprYield

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for u128

source§

impl ConvertParsed for AndAnd

§

type Type = AndAnd

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for SelfType

§

type Type = SelfType

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprField

§

type Type = ExprField

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeInfer

§

type Type = TypeInfer

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Dot

§

type Type = Dot

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ShrEq

§

type Type = ShrEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Become

§

type Type = Become

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitItemMacro

§

type Type = TraitItemMacro

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for RArrow

§

type Type = RArrow

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for i32

source§

impl ConvertParsed for LitStr

§

type Type = LitStr

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Colon

§

type Type = Colon

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LitBool

§

type Type = LitBool

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for ExprCast

§

type Type = ExprCast

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Extern

§

type Type = Extern

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Literal

§

type Type = Literal

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TraitBound

§

type Type = TraitBound

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for CaretEq

§

type Type = CaretEq

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for Struct

§

type Type = Struct

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for u64

source§

impl ConvertParsed for Yield

§

type Type = Yield

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for TypeParen

§

type Type = TypeParen

source§

fn convert(s: Self) -> Result<Self>

source§

impl ConvertParsed for LArrow

§

type Type = LArrow

source§

fn convert(s: Self) -> Result<Self>

Implementors§