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 Match

§

type Type = Match

source§

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

source§

impl ConvertParsed for MinusEq

§

type Type = MinusEq

source§

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

source§

impl ConvertParsed for Or

§

type Type = Or

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 ExprIndex

§

type Type = ExprIndex

source§

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

source§

impl ConvertParsed for Meta

§

type Type = Meta

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 ExprLoop

§

type Type = ExprLoop

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 ExprReturn

§

type Type = ExprReturn

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 Async

§

type Type = Async

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 Ident

§

type Type = Ident

source§

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

source§

impl ConvertParsed for PathSep

§

type Type = PathSep

source§

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

source§

impl ConvertParsed for f32

source§

impl ConvertParsed for SlashEq

§

type Type = SlashEq

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 Return

§

type Type = Return

source§

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

source§

impl ConvertParsed for AndAnd

§

type Type = AndAnd

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 isize

source§

impl ConvertParsed for String

source§

impl ConvertParsed for PercentEq

§

type Type = PercentEq

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 Semi

§

type Type = Semi

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 Await

§

type Type = Await

source§

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

source§

impl ConvertParsed for i8

source§

impl ConvertParsed for BareFnArg

§

type Type = BareFnArg

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 Visibility

§

type Type = Visibility

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 Static

§

type Type = Static

source§

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

source§

impl ConvertParsed for WherePredicate

§

type Type = WherePredicate

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 Continue

§

type Type = Continue

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 Constraint

§

type Type = Constraint

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 Lit

§

type Type = Lit

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 DotDotDot

§

type Type = DotDotDot

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 Unsized

§

type Type = Unsized

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 BinOp

§

type Type = BinOp

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 Enum

§

type Type = Enum

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 Literal

§

type Type = Literal

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 Priv

§

type Type = Priv

source§

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

source§

impl ConvertParsed for Variant

§

type Type = Variant

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 If

§

type Type = If

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 i32

source§

impl ConvertParsed for Not

§

type Type = Not

source§

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

source§

impl ConvertParsed for OrEq

§

type Type = OrEq

source§

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

source§

impl ConvertParsed for Dollar

§

type Type = Dollar

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 Override

§

type Type = Override

source§

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

source§

impl ConvertParsed for ParenthesizedGenericArguments

source§

impl ConvertParsed for ExprTryBlock

§

type Type = ExprTryBlock

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 Slash

§

type Type = Slash

source§

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

source§

impl ConvertParsed for AngleBracketedGenericArguments

source§

impl ConvertParsed for TypeTuple

§

type Type = TypeTuple

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 Ref

§

type Type = Ref

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 ExprUnary

§

type Type = ExprUnary

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 Abi

§

type Type = Abi

source§

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

source§

impl ConvertParsed for ExprAsync

§

type Type = ExprAsync

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 ExprRepeat

§

type Type = ExprRepeat

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 TypeMacro

§

type Type = TypeMacro

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 SelfValue

§

type Type = SelfValue

source§

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

source§

impl ConvertParsed for Dyn

§

type Type = Dyn

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 Abstract

§

type Type = Abstract

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 u64

source§

impl ConvertParsed for ExprForLoop

§

type Type = ExprForLoop

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 CaretEq

§

type Type = CaretEq

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 Generics

§

type Type = Generics

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 Question

§

type Type = Question

source§

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

source§

impl ConvertParsed for Use

§

type Type = Use

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 For

§

type Type = For

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 Lt

§

type Type = Lt

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 Pound

§

type Type = Pound

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 Final

§

type Type = Final

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 Shl

§

type Type = Shl

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 Loop

§

type Type = Loop

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 TypeBareFn

§

type Type = TypeBareFn

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 LitChar

§

type Type = LitChar

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 ExprStruct

§

type Type = ExprStruct

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 Crate

§

type Type = Crate

source§

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

source§

impl ConvertParsed for u128

source§

impl ConvertParsed for Let

§

type Type = Let

source§

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

source§

impl ConvertParsed for DotDot

§

type Type = DotDot

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 i16

source§

impl ConvertParsed for Else

§

type Type = Else

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 LArrow

§

type Type = LArrow

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 Index

§

type Type = Index

source§

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

source§

impl ConvertParsed for Plus

§

type Type = Plus

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 TypePath

§

type Type = TypePath

source§

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

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 Try

§

type Type = Try

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 Fn

§

type Type = Fn

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 UnOp

§

type Type = UnOp

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 Dot

§

type Type = Dot

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 u32

source§

impl ConvertParsed for Box

§

type Type = Box

source§

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

source§

impl ConvertParsed for u16

source§

impl ConvertParsed for RArrow

§

type Type = RArrow

source§

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

source§

impl ConvertParsed for StarEq

§

type Type = StarEq

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 ConstParam

§

type Type = ConstParam

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 LitBool

§

type Type = LitBool

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 SelfType

§

type Type = SelfType

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 While

§

type Type = While

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 Caret

§

type Type = Caret

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 Yield

§

type Type = Yield

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 i128

source§

impl ConvertParsed for Mod

§

type Type = Mod

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 Become

§

type Type = Become

source§

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

source§

impl ConvertParsed for TraitBoundModifier

§

type Type = TraitBoundModifier

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 Union

§

type Type = Union

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 f64

source§

impl ConvertParsed for ExprParen

§

type Type = ExprParen

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 Type

§

type Type = Type

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 EqEq

§

type Type = EqEq

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 char

source§

impl ConvertParsed for Extern

§

type Type = Extern

source§

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

source§

impl ConvertParsed for PlusEq

§

type Type = PlusEq

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 ExprCall

§

type Type = ExprCall

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 Colon

§

type Type = Colon

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 Le

§

type Type = Le

source§

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

source§

impl ConvertParsed for Percent

§

type Type = Percent

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 Comma

§

type Type = Comma

source§

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

source§

impl ConvertParsed for Minus

§

type Type = Minus

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 Default

§

type Type = Default

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 As

§

type Type = As

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 ReturnType

§

type Type = ReturnType

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 Ge

§

type Type = Ge

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 i64

source§

impl ConvertParsed for u8

source§

impl ConvertParsed for LitFloat

§

type Type = LitFloat

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 ExprTuple

§

type Type = ExprTuple

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 Lifetime

§

type Type = Lifetime

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 Unsafe

§

type Type = Unsafe

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 LitStr

§

type Type = LitStr

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 And

§

type Type = And

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 Impl

§

type Type = Impl

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 ExprField

§

type Type = ExprField

source§

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

source§

impl ConvertParsed for usize

source§

impl ConvertParsed for ExprPath

§

type Type = ExprPath

source§

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

source§

impl ConvertParsed for GenericParam

§

type Type = GenericParam

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 ExprReference

§

type Type = ExprReference

source§

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

Implementors§