Trait ConvertParsed

Source
pub trait ConvertParsed: Sized {
    type Type;

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

    // Provided methods
    fn default() -> Option<Self> { ... }
    fn flag() -> Option<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 Vec which are parsed with the syntax [a, b, c].

Required Associated Types§

Source

type Type

The type this can be converted from

Required Methods§

Source

fn convert(path_value: PathValue<Self::Type>) -> Result<Self>

Convert the PathValue<Self::Type> to self.

Provided Methods§

Source

fn default() -> Option<Self>

Returns the value when this type is not specified.

Source

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

Returns the value when this type is specified as flag.

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 ConvertParsed for TokenTree

Source§

type Type = TokenTree

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Meta

Source§

type Type = Meta

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Expr

Source§

type Type = Expr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Member

Source§

type Type = Member

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for RangeLimits

Available on crate feature syn-full only.
Source§

type Type = RangeLimits

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for GenericParam

Source§

type Type = GenericParam

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitBoundModifier

Source§

type Type = TraitBoundModifier

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeParamBound

Source§

type Type = TypeParamBound

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for WherePredicate

Source§

type Type = WherePredicate

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for FnArg

Available on crate feature syn-full only.
Source§

type Type = FnArg

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ForeignItem

Available on crate feature syn-full only.
Source§

type Type = ForeignItem

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ImplItem

Available on crate feature syn-full only.
Source§

type Type = ImplItem

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Item

Available on crate feature syn-full only.
Source§

type Type = Item

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitItem

Available on crate feature syn-full only.
Source§

type Type = TraitItem

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for UseTree

Available on crate feature syn-full only.
Source§

type Type = UseTree

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Lit

Source§

type Type = Lit

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for BinOp

Source§

type Type = BinOp

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for UnOp

Source§

type Type = UnOp

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Pat

Available on crate feature syn-full only.
Source§

type Type = Pat

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for GenericArgument

Source§

type Type = GenericArgument

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Visibility

Source§

type Type = Visibility

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Stmt

Available on crate feature syn-full only.
Source§

type Type = Stmt

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ReturnType

Source§

type Type = ReturnType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Type

Source§

type Type = Type

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for bool

Source§

type Type = LitBool

Source§

fn convert(path_value: PathValue<Self::Type>) -> Result<Self>

Source§

fn default() -> Option<Self>

Source§

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

Source§

impl ConvertParsed for char

Source§

impl ConvertParsed for f32

Source§

impl ConvertParsed for f64

Source§

impl ConvertParsed for i8

Source§

impl ConvertParsed for i16

Source§

impl ConvertParsed for i32

Source§

impl ConvertParsed for i64

Source§

impl ConvertParsed for i128

Source§

impl ConvertParsed for isize

Source§

impl ConvertParsed for u8

Source§

impl ConvertParsed for u16

Source§

impl ConvertParsed for u32

Source§

impl ConvertParsed for u64

Source§

impl ConvertParsed for u128

Source§

impl ConvertParsed for usize

Source§

impl ConvertParsed for String

Source§

impl ConvertParsed for Group

Source§

type Type = Group

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Ident

Source§

type Type = Ident

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Literal

Source§

type Type = Literal

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Punct

Source§

type Type = Punct

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for MetaList

Source§

type Type = MetaList

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for MetaNameValue

Source§

type Type = MetaNameValue

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for FieldsNamed

Source§

type Type = FieldsNamed

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for FieldsUnnamed

Source§

type Type = FieldsUnnamed

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Variant

Source§

type Type = Variant

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for DeriveInput

Source§

type Type = DeriveInput

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Arm

Available on crate feature syn-full only.
Source§

type Type = Arm

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprArray

Source§

type Type = ExprArray

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprAssign

Source§

type Type = ExprAssign

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprAsync

Source§

type Type = ExprAsync

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprBinary

Source§

type Type = ExprBinary

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprBlock

Source§

type Type = ExprBlock

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprBreak

Source§

type Type = ExprBreak

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprCall

Source§

type Type = ExprCall

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprCast

Source§

type Type = ExprCast

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprClosure

Source§

type Type = ExprClosure

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprContinue

Source§

type Type = ExprContinue

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprField

Source§

type Type = ExprField

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprForLoop

Source§

type Type = ExprForLoop

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprIf

Source§

type Type = ExprIf

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprIndex

Source§

type Type = ExprIndex

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprLet

Source§

type Type = ExprLet

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprLit

Source§

type Type = ExprLit

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprLoop

Source§

type Type = ExprLoop

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprMacro

Source§

type Type = ExprMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprMatch

Source§

type Type = ExprMatch

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprMethodCall

Source§

type Type = ExprMethodCall

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprParen

Source§

type Type = ExprParen

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprPath

Source§

type Type = ExprPath

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprRange

Source§

type Type = ExprRange

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprReference

Source§

type Type = ExprReference

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprRepeat

Source§

type Type = ExprRepeat

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprReturn

Source§

type Type = ExprReturn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprStruct

Source§

type Type = ExprStruct

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprTry

Source§

type Type = ExprTry

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprTryBlock

Source§

type Type = ExprTryBlock

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprTuple

Source§

type Type = ExprTuple

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprUnary

Source§

type Type = ExprUnary

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprUnsafe

Source§

type Type = ExprUnsafe

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprWhile

Source§

type Type = ExprWhile

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ExprYield

Source§

type Type = ExprYield

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for FieldValue

Source§

type Type = FieldValue

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Index

Source§

type Type = Index

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Label

Available on crate feature syn-full only.
Source§

type Type = Label

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for File

Available on crate feature syn-full only.
Source§

type Type = File

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for BoundLifetimes

Source§

type Type = BoundLifetimes

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ConstParam

Source§

type Type = ConstParam

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Generics

Source§

type Type = Generics

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitBound

Source§

type Type = TraitBound

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeParam

Source§

type Type = TypeParam

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for WhereClause

Source§

type Type = WhereClause

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ForeignItemFn

Available on crate feature syn-full only.
Source§

type Type = ForeignItemFn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ForeignItemMacro

Available on crate feature syn-full only.
Source§

type Type = ForeignItemMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ForeignItemStatic

Available on crate feature syn-full only.
Source§

type Type = ForeignItemStatic

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ForeignItemType

Available on crate feature syn-full only.
Source§

type Type = ForeignItemType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ImplItemConst

Available on crate feature syn-full only.
Source§

type Type = ImplItemConst

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ImplItemMacro

Available on crate feature syn-full only.
Source§

type Type = ImplItemMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ImplItemType

Available on crate feature syn-full only.
Source§

type Type = ImplItemType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemConst

Available on crate feature syn-full only.
Source§

type Type = ItemConst

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemEnum

Available on crate feature syn-full only.
Source§

type Type = ItemEnum

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemExternCrate

Available on crate feature syn-full only.
Source§

type Type = ItemExternCrate

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemFn

Available on crate feature syn-full only.
Source§

type Type = ItemFn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemForeignMod

Available on crate feature syn-full only.
Source§

type Type = ItemForeignMod

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemImpl

Available on crate feature syn-full only.
Source§

type Type = ItemImpl

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemMacro

Available on crate feature syn-full only.
Source§

type Type = ItemMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemMod

Available on crate feature syn-full only.
Source§

type Type = ItemMod

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemStatic

Available on crate feature syn-full only.
Source§

type Type = ItemStatic

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemStruct

Available on crate feature syn-full only.
Source§

type Type = ItemStruct

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemTrait

Available on crate feature syn-full only.
Source§

type Type = ItemTrait

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemTraitAlias

Available on crate feature syn-full only.
Source§

type Type = ItemTraitAlias

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemType

Available on crate feature syn-full only.
Source§

type Type = ItemType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemUnion

Available on crate feature syn-full only.
Source§

type Type = ItemUnion

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ItemUse

Available on crate feature syn-full only.
Source§

type Type = ItemUse

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Receiver

Available on crate feature syn-full only.
Source§

type Type = Receiver

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Signature

Available on crate feature syn-full only.
Source§

type Type = Signature

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitItemConst

Available on crate feature syn-full only.
Source§

type Type = TraitItemConst

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitItemMacro

Available on crate feature syn-full only.
Source§

type Type = TraitItemMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TraitItemType

Available on crate feature syn-full only.
Source§

type Type = TraitItemType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Lifetime

Source§

type Type = Lifetime

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitBool

Source§

type Type = LitBool

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitByteStr

Source§

type Type = LitByteStr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitChar

Source§

type Type = LitChar

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitFloat

Source§

type Type = LitFloat

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitInt

Source§

type Type = LitInt

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LitStr

Source§

type Type = LitStr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Macro

Source§

type Type = Macro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for AngleBracketedGenericArguments

Source§

impl ConvertParsed for Constraint

Source§

type Type = Constraint

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ParenthesizedGenericArguments

Source§

impl ConvertParsed for Path

Source§

type Type = Path

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for PathSegment

Source§

type Type = PathSegment

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Block

Available on crate feature syn-full only.
Source§

type Type = Block

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Abstract

Source§

type Type = Abstract

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for And

Source§

type Type = And

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for AndAnd

Source§

type Type = AndAnd

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for AndEq

Source§

type Type = AndEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for As

Source§

type Type = As

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Async

Source§

type Type = Async

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for At

Source§

type Type = At

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Auto

Source§

type Type = Auto

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Await

Source§

type Type = Await

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Become

Source§

type Type = Become

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Box

Source§

type Type = Box

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Break

Source§

type Type = Break

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Caret

Source§

type Type = Caret

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for CaretEq

Source§

type Type = CaretEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Colon

Source§

type Type = Colon

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Comma

Source§

type Type = Comma

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Const

Source§

type Type = Const

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Continue

Source§

type Type = Continue

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Crate

Source§

type Type = Crate

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Default

Source§

type Type = Default

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Do

Source§

type Type = Do

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Dollar

Source§

type Type = Dollar

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Dot

Source§

type Type = Dot

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for DotDot

Source§

type Type = DotDot

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for DotDotDot

Source§

type Type = DotDotDot

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for DotDotEq

Source§

type Type = DotDotEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Dyn

Source§

type Type = Dyn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Else

Source§

type Type = Else

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Enum

Source§

type Type = Enum

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Eq

Source§

type Type = Eq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for EqEq

Source§

type Type = EqEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Extern

Source§

type Type = Extern

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for FatArrow

Source§

type Type = FatArrow

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Final

Source§

type Type = Final

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Fn

Source§

type Type = Fn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for For

Source§

type Type = For

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Ge

Source§

type Type = Ge

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Gt

Source§

type Type = Gt

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for If

Source§

type Type = If

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Impl

Source§

type Type = Impl

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for In

Source§

type Type = In

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for LArrow

Source§

type Type = LArrow

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Le

Source§

type Type = Le

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Let

Source§

type Type = Let

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Loop

Source§

type Type = Loop

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Lt

Source§

type Type = Lt

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Macro

Source§

type Type = Macro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Match

Source§

type Type = Match

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Minus

Source§

type Type = Minus

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for MinusEq

Source§

type Type = MinusEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Mod

Source§

type Type = Mod

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Move

Source§

type Type = Move

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Mut

Source§

type Type = Mut

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Ne

Source§

type Type = Ne

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Not

Source§

type Type = Not

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Or

Source§

type Type = Or

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for OrEq

Source§

type Type = OrEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for OrOr

Source§

type Type = OrOr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Override

Source§

type Type = Override

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for PathSep

Source§

type Type = PathSep

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Percent

Source§

type Type = Percent

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for PercentEq

Source§

type Type = PercentEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Plus

Source§

type Type = Plus

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for PlusEq

Source§

type Type = PlusEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Pound

Source§

type Type = Pound

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Priv

Source§

type Type = Priv

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Pub

Source§

type Type = Pub

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Question

Source§

type Type = Question

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for RArrow

Source§

type Type = RArrow

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Ref

Source§

type Type = Ref

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Return

Source§

type Type = Return

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for SelfType

Source§

type Type = SelfType

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for SelfValue

Source§

type Type = SelfValue

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Semi

Source§

type Type = Semi

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Shl

Source§

type Type = Shl

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ShlEq

Source§

type Type = ShlEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Shr

Source§

type Type = Shr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for ShrEq

Source§

type Type = ShrEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Slash

Source§

type Type = Slash

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for SlashEq

Source§

type Type = SlashEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Star

Source§

type Type = Star

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for StarEq

Source§

type Type = StarEq

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Static

Source§

type Type = Static

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Struct

Source§

type Type = Struct

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Super

Source§

type Type = Super

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Tilde

Source§

type Type = Tilde

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Trait

Source§

type Type = Trait

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Try

Source§

type Type = Try

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Type

Source§

type Type = Type

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Typeof

Source§

type Type = Typeof

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Underscore

Source§

type Type = Underscore

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Union

Source§

type Type = Union

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Unsafe

Source§

type Type = Unsafe

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Unsized

Source§

type Type = Unsized

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Use

Source§

type Type = Use

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Virtual

Source§

type Type = Virtual

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Where

Source§

type Type = Where

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for While

Source§

type Type = While

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Yield

Source§

type Type = Yield

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for Abi

Source§

type Type = Abi

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for BareFnArg

Source§

type Type = BareFnArg

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeArray

Source§

type Type = TypeArray

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeBareFn

Source§

type Type = TypeBareFn

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeGroup

Source§

type Type = TypeGroup

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeImplTrait

Source§

type Type = TypeImplTrait

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeInfer

Source§

type Type = TypeInfer

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeMacro

Source§

type Type = TypeMacro

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeNever

Source§

type Type = TypeNever

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeParen

Source§

type Type = TypeParen

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypePath

Source§

type Type = TypePath

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypePtr

Source§

type Type = TypePtr

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeReference

Source§

type Type = TypeReference

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeSlice

Source§

type Type = TypeSlice

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeTraitObject

Source§

type Type = TypeTraitObject

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl ConvertParsed for TypeTuple

Source§

type Type = TypeTuple

Source§

fn convert(path_value: PathValue<Self>) -> Result<Self>

Source§

impl<T> ConvertParsed for Option<T>
where T: ConvertParsed,

Source§

type Type = <T as ConvertParsed>::Type

Source§

fn convert(path_value: PathValue<Self::Type>) -> Result<Self>

Source§

fn default() -> Option<Self>

Source§

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

Source§

impl<T> ConvertParsed for Vec<T>
where T: ConvertParsed,

Source§

type Type = Array<<T as ConvertParsed>::Type>

Source§

fn convert(path_value: PathValue<Self::Type>) -> Result<Self>

Source§

fn default() -> Option<Self>

Implementors§

Source§

impl<K, V> ConvertParsed for Map<K, V>

Source§

impl<T> ConvertParsed for FlagOrValue<T>
where T: ConvertParsed,

Source§

type Type = FlagOrType<<T as ConvertParsed>::Type>

Source§

impl<T> ConvertParsed for PathValue<T>
where T: ConvertParsed,