Syn

Trait Syn 

Source
pub trait Syn: Sized + Sealed {
    type Adapter: Serialize + for<'de> Deserialize<'de>;

    // Required methods
    fn to_adapter(&self) -> Self::Adapter;
    fn from_adapter(adapter: &Self::Adapter) -> Self;
}
Expand description

A trait for the data structures of Syn and proc-macro2.

Required Associated Types§

Source

type Adapter: Serialize + for<'de> Deserialize<'de>

Required Methods§

Source

fn to_adapter(&self) -> Self::Adapter

Converts a Syn type into an adapter.

§Examples
use syn_serde::Syn;

let syn_file: syn::File = syn::parse_quote! {
    fn main() {
        println!("Hello, world!");
    }
};

let serializable_file = syn_file.to_adapter();
println!("{}", serde_json::to_string_pretty(&serializable_file).unwrap());
Source

fn from_adapter(adapter: &Self::Adapter) -> Self

Converts an adapter into a Syn type.

§Examples
use syn_serde::Syn;

// `struct Unit;`
let json = r#"{
  "struct": {
    "ident": "Unit",
    "fields": "unit"
  }
}"#;

let serializable_file: <syn::File as Syn>::Adapter = serde_json::from_str(json)?;
let syn_file = syn::File::from_adapter(&serializable_file);

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 Syn for Delimiter

Source§

type Adapter = Delimiter

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Spacing

Source§

type Adapter = Spacing

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TokenTree

Source§

type Adapter = TokenTree

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for AttrStyle

Source§

type Adapter = AttrStyle

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Meta

Source§

type Adapter = Meta

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Fields

Source§

type Adapter = Fields

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Expr

Source§

type Adapter = Expr

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Member

Source§

type Adapter = Member

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for RangeLimits

Source§

type Adapter = RangeLimits

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for GenericParam

Source§

type Adapter = GenericParam

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitBoundModifier

Source§

type Adapter = TraitBoundModifier

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeParamBound

Source§

type Adapter = TypeParamBound

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for WherePredicate

Source§

type Adapter = WherePredicate

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FnArg

Source§

type Adapter = FnArg

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ForeignItem

Source§

type Adapter = ForeignItem

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplItem

Source§

type Adapter = ImplItem

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplRestriction

Source§

type Adapter = ImplRestriction

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Item

Source§

type Adapter = Item

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for StaticMutability

Source§

type Adapter = StaticMutability

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitItem

Source§

type Adapter = TraitItem

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UseTree

Source§

type Adapter = UseTree

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Lit

Source§

type Adapter = Lit

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for MacroDelimiter

Source§

type Adapter = MacroDelimiter

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for BinOp

Source§

type Adapter = BinOp

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UnOp

Source§

type Adapter = UnOp

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Pat

Source§

type Adapter = Pat

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for GenericArgument

Source§

type Adapter = GenericArgument

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PathArguments

Source§

type Adapter = PathArguments

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FieldMutability

Source§

type Adapter = FieldMutability

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Visibility

Source§

type Adapter = Visibility

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Stmt

Source§

type Adapter = Stmt

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ReturnType

Source§

type Adapter = ReturnType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Type

Source§

type Adapter = Type

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Group

Source§

type Adapter = Group

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Ident

Source§

type Adapter = Ident

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Literal

Source§

type Adapter = Literal

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Punct

Source§

type Adapter = Punct

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TokenStream

Source§

type Adapter = TokenStream

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Attribute

Source§

type Adapter = Attribute

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for MetaList

Source§

type Adapter = MetaList

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for MetaNameValue

Source§

type Adapter = MetaNameValue

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Field

Source§

type Adapter = Field

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FieldsNamed

Source§

type Adapter = FieldsNamed

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FieldsUnnamed

Source§

type Adapter = FieldsUnnamed

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Variant

Source§

type Adapter = Variant

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Arm

Source§

type Adapter = Arm

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprArray

Source§

type Adapter = ExprArray

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprAssign

Source§

type Adapter = ExprAssign

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprAsync

Source§

type Adapter = ExprAsync

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprAwait

Source§

type Adapter = ExprAwait

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprBinary

Source§

type Adapter = ExprBinary

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprBlock

Source§

type Adapter = ExprBlock

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprBreak

Source§

type Adapter = ExprBreak

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprCall

Source§

type Adapter = ExprCall

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprCast

Source§

type Adapter = ExprCast

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprClosure

Source§

type Adapter = ExprClosure

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprConst

Source§

type Adapter = ExprConst

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprContinue

Source§

type Adapter = ExprContinue

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprField

Source§

type Adapter = ExprField

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprForLoop

Source§

type Adapter = ExprForLoop

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprGroup

Source§

type Adapter = ExprGroup

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprIf

Source§

type Adapter = ExprIf

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprIndex

Source§

type Adapter = ExprIndex

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprInfer

Source§

type Adapter = ExprInfer

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprLet

Source§

type Adapter = ExprLet

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprLit

Source§

type Adapter = ExprLit

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprLoop

Source§

type Adapter = ExprLoop

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprMacro

Source§

type Adapter = ExprMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprMatch

Source§

type Adapter = ExprMatch

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprMethodCall

Source§

type Adapter = ExprMethodCall

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprParen

Source§

type Adapter = ExprParen

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprPath

Source§

type Adapter = ExprPath

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprRange

Source§

type Adapter = ExprRange

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprReference

Source§

type Adapter = ExprReference

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprRepeat

Source§

type Adapter = ExprRepeat

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprReturn

Source§

type Adapter = ExprReturn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprStruct

Source§

type Adapter = ExprStruct

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprTry

Source§

type Adapter = ExprTry

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprTryBlock

Source§

type Adapter = ExprTryBlock

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprTuple

Source§

type Adapter = ExprTuple

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprUnary

Source§

type Adapter = ExprUnary

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprUnsafe

Source§

type Adapter = ExprUnsafe

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprWhile

Source§

type Adapter = ExprWhile

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ExprYield

Source§

type Adapter = ExprYield

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FieldValue

Source§

type Adapter = FieldValue

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Index

Source§

type Adapter = Index

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Label

Source§

type Adapter = Label

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for File

Source§

type Adapter = File

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for BoundLifetimes

Source§

type Adapter = BoundLifetimes

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ConstParam

Source§

type Adapter = ConstParam

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Generics

Source§

type Adapter = Generics

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for LifetimeParam

Source§

type Adapter = LifetimeParam

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PredicateLifetime

Source§

type Adapter = PredicateLifetime

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PredicateType

Source§

type Adapter = PredicateType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitBound

Source§

type Adapter = TraitBound

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeParam

Source§

type Adapter = TypeParam

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for WhereClause

Source§

type Adapter = WhereClause

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ForeignItemFn

Source§

type Adapter = ForeignItemFn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ForeignItemMacro

Source§

type Adapter = ForeignItemMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ForeignItemStatic

Source§

type Adapter = ForeignItemStatic

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ForeignItemType

Source§

type Adapter = ForeignItemType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplItemConst

Source§

type Adapter = ImplItemConst

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplItemFn

Source§

type Adapter = ImplItemFn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplItemMacro

Source§

type Adapter = ImplItemMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ImplItemType

Source§

type Adapter = ImplItemType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemConst

Source§

type Adapter = ItemConst

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemEnum

Source§

type Adapter = ItemEnum

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemExternCrate

Source§

type Adapter = ItemExternCrate

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemFn

Source§

type Adapter = ItemFn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemForeignMod

Source§

type Adapter = ItemForeignMod

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemImpl

Source§

type Adapter = ItemImpl

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemMacro

Source§

type Adapter = ItemMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemMod

Source§

type Adapter = ItemMod

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemStatic

Source§

type Adapter = ItemStatic

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemStruct

Source§

type Adapter = ItemStruct

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemTrait

Source§

type Adapter = ItemTrait

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemTraitAlias

Source§

type Adapter = ItemTraitAlias

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemType

Source§

type Adapter = ItemType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemUnion

Source§

type Adapter = ItemUnion

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ItemUse

Source§

type Adapter = ItemUse

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Receiver

Source§

type Adapter = Receiver

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Signature

Source§

type Adapter = Signature

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitItemConst

Source§

type Adapter = TraitItemConst

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitItemFn

Source§

type Adapter = TraitItemFn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitItemMacro

Source§

type Adapter = TraitItemMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TraitItemType

Source§

type Adapter = TraitItemType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UseGroup

Source§

type Adapter = UseGroup

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UseName

Source§

type Adapter = UseName

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UsePath

Source§

type Adapter = UsePath

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for UseRename

Source§

type Adapter = UseRename

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Variadic

Source§

type Adapter = Variadic

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Lifetime

Source§

type Adapter = Lifetime

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for LitBool

Source§

type Adapter = LitBool

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Macro

Source§

type Adapter = Macro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for FieldPat

Source§

type Adapter = FieldPat

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatIdent

Source§

type Adapter = PatIdent

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatOr

Source§

type Adapter = PatOr

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatParen

Source§

type Adapter = PatParen

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatReference

Source§

type Adapter = PatReference

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatRest

Source§

type Adapter = PatRest

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatSlice

Source§

type Adapter = PatSlice

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatStruct

Source§

type Adapter = PatStruct

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatTuple

Source§

type Adapter = PatTuple

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatTupleStruct

Source§

type Adapter = PatTupleStruct

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatType

Source§

type Adapter = PatType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PatWild

Source§

type Adapter = PatWild

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for AngleBracketedGenericArguments

Source§

type Adapter = AngleBracketedGenericArguments

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for AssocConst

Source§

type Adapter = AssocConst

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for AssocType

Source§

type Adapter = AssocType

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Constraint

Source§

type Adapter = Constraint

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for ParenthesizedGenericArguments

Source§

type Adapter = ParenthesizedGenericArguments

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Path

Source§

type Adapter = Path

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for PathSegment

Source§

type Adapter = PathSegment

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for QSelf

Source§

type Adapter = QSelf

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for VisRestricted

Source§

type Adapter = VisRestricted

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Block

Source§

type Adapter = Block

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Local

Source§

type Adapter = Local

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for LocalInit

Source§

type Adapter = LocalInit

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for StmtMacro

Source§

type Adapter = StmtMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for Abi

Source§

type Adapter = Abi

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for BareFnArg

Source§

type Adapter = BareFnArg

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for BareVariadic

Source§

type Adapter = BareVariadic

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeArray

Source§

type Adapter = TypeArray

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeBareFn

Source§

type Adapter = TypeBareFn

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeGroup

Source§

type Adapter = TypeGroup

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeImplTrait

Source§

type Adapter = TypeImplTrait

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeMacro

Source§

type Adapter = TypeMacro

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeParen

Source§

type Adapter = TypeParen

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypePath

Source§

type Adapter = TypePath

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypePtr

Source§

type Adapter = TypePtr

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeReference

Source§

type Adapter = TypeReference

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeSlice

Source§

type Adapter = TypeSlice

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeTraitObject

Source§

type Adapter = TypeTraitObject

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Source§

impl Syn for TypeTuple

Source§

type Adapter = TypeTuple

Source§

fn to_adapter(&self) -> Self::Adapter

Source§

fn from_adapter(adapter: &Self::Adapter) -> Self

Implementors§