rustdoc::json::conversions

Trait FromClean

source
pub(crate) trait FromClean<T> {
    // Required method
    fn from_clean(f: T, renderer: &JsonRenderer<'_>) -> Self;
}

Required Methods§

source

fn from_clean(f: T, renderer: &JsonRenderer<'_>) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromClean<AssocItemConstraintKind> for AssocItemConstraintKind

source§

fn from_clean( kind: AssocItemConstraintKind, renderer: &JsonRenderer<'_>, ) -> Self

source§

impl FromClean<ConstantKind> for Constant

source§

fn from_clean(constant: ConstantKind, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<GenericArg> for GenericArg

source§

fn from_clean(arg: GenericArg, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<GenericArgs> for GenericArgs

source§

fn from_clean(args: GenericArgs, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<GenericBound> for GenericBound

source§

fn from_clean(bound: GenericBound, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<GenericParamDefKind> for GenericParamDefKind

source§

fn from_clean(kind: GenericParamDefKind, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Term> for Term

source§

fn from_clean(term: Term, renderer: &JsonRenderer<'_>) -> Term

source§

impl FromClean<Type> for Type

source§

fn from_clean(ty: Type, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<WherePredicate> for WherePredicate

source§

fn from_clean(predicate: WherePredicate, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<ItemType> for ItemKind

source§

fn from_clean(kind: ItemType, _renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<AssocItemConstraint> for AssocItemConstraint

source§

fn from_clean( constraint: AssocItemConstraint, renderer: &JsonRenderer<'_>, ) -> Self

source§

impl FromClean<BareFunctionDecl> for FunctionPointer

source§

fn from_clean(bare_decl: BareFunctionDecl, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Constant> for Constant

source§

fn from_clean(constant: Constant, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Discriminant> for Discriminant

source§

fn from_clean(disr: Discriminant, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Enum> for Enum

source§

fn from_clean(enum_: Enum, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<FnDecl> for FunctionSignature

source§

fn from_clean(decl: FnDecl, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<GenericParamDef> for GenericParamDef

source§

fn from_clean( generic_param: GenericParamDef, renderer: &JsonRenderer<'_>, ) -> Self

source§

impl FromClean<Generics> for Generics

source§

fn from_clean(generics: Generics, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Impl> for Impl

source§

fn from_clean(impl_: Impl, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Import> for Use

source§

fn from_clean(import: Import, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Path> for Path

source§

fn from_clean(path: Path, renderer: &JsonRenderer<'_>) -> Path

source§

impl FromClean<PolyTrait> for PolyTrait

source§

fn from_clean(_: PolyTrait, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<ProcMacro> for ProcMacro

source§

fn from_clean(mac: ProcMacro, _renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Static> for Static

source§

fn from_clean(stat: Static, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Struct> for Struct

source§

fn from_clean(struct_: Struct, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Trait> for Trait

source§

fn from_clean(trait_: Trait, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<TraitAlias> for TraitAlias

source§

fn from_clean(alias: TraitAlias, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Union> for Union

source§

fn from_clean(union_: Union, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Variant> for Variant

source§

fn from_clean(variant: Variant, renderer: &JsonRenderer<'_>) -> Self

source§

impl FromClean<Box<TypeAlias>> for TypeAlias

source§

fn from_clean(type_alias: Box<TypeAlias>, renderer: &JsonRenderer<'_>) -> Self

source§

impl<I, T, U> FromClean<I> for Vec<U>
where I: IntoIterator<Item = T>, U: FromClean<T>,

source§

fn from_clean(f: I, renderer: &JsonRenderer<'_>) -> Vec<U>

Implementors§