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

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 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<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§