Skip to main content

ToPure

Trait ToPure 

Source
pub trait ToPure {
    type Output;

    // Required method
    fn to_pure(&self) -> Self::Output;
}
Expand description

Trait for converting syn types to pure types.

Required Associated Types§

Source

type Output

Pure AST output type produced from self.

Required Methods§

Source

fn to_pure(&self) -> Self::Output

Convert self into its pure-AST representation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ToPure for Fields

Source§

impl ToPure for Expr

Source§

impl ToPure for GenericParam

Source§

impl ToPure for FnArg

Source§

impl ToPure for ImplItem

Source§

impl ToPure for Item

Source§

impl ToPure for TraitItem

Source§

impl ToPure for UseTree

Source§

impl ToPure for Pat

Source§

impl ToPure for Visibility

Source§

impl ToPure for Stmt

Source§

impl ToPure for Type

Source§

impl ToPure for Attribute

Source§

impl ToPure for Field

Source§

impl ToPure for Variant

Source§

impl ToPure for Arm

Source§

impl ToPure for File

Source§

impl ToPure for Generics

Source§

impl ToPure for ImplItemConst

Source§

impl ToPure for ImplItemFn

Source§

impl ToPure for ImplItemType

Source§

impl ToPure for ItemConst

Source§

impl ToPure for ItemEnum

Source§

impl ToPure for ItemFn

Source§

impl ToPure for ItemImpl

Source§

impl ToPure for ItemMacro

Source§

impl ToPure for ItemMod

Source§

impl ToPure for ItemStatic

Source§

impl ToPure for ItemStruct

Source§

impl ToPure for ItemTrait

Source§

impl ToPure for ItemType

Source§

impl ToPure for ItemUse

Source§

impl ToPure for TraitItemConst

Source§

impl ToPure for TraitItemFn

Source§

impl ToPure for Block

Implementors§