flux_middle::pretty

Trait Pretty

Source
pub trait Pretty {
    // Required method
    fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result;

    // Provided method
    fn default_cx(tcx: TyCtxt<'_>) -> PrettyCx<'_, '_> { ... }
}

Required Methods§

Source

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Provided Methods§

Source

fn default_cx(tcx: TyCtxt<'_>) -> PrettyCx<'_, '_>

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 Pretty for ValTree

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl Pretty for UnevaluatedConst

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl Pretty for String

Source§

fn fmt(&self, _cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl Pretty for DefId

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl Pretty for Span

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl Pretty for FieldIdx

Source§

fn fmt(&self, _cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl<T: Pretty + Internable> Pretty for Interned<T>

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Source§

impl<T: Pretty + ?Sized> Pretty for &T

Source§

fn fmt(&self, cx: &PrettyCx<'_, '_>, f: &mut Formatter<'_>) -> Result

Implementors§

Source§

impl Pretty for CanonicalTy

Source§

impl Pretty for BaseTy

Source§

impl Pretty for BoundRegionKind

Source§

impl Pretty for BvSize

Source§

impl Pretty for ClauseKind

Source§

impl Pretty for Ensures

Source§

impl Pretty for ExistentialPredicate

Source§

impl Pretty for GenericArg

Source§

impl Pretty for PtrKind

Source§

impl Pretty for Region

Source§

impl Pretty for Sort

Source§

impl Pretty for SortArg

Source§

impl Pretty for SortCtor

Source§

impl Pretty for SortInfer

Source§

impl Pretty for BinOp

Source§

impl Pretty for Constant

Source§

impl Pretty for Loc

Source§

impl Pretty for UnOp

Source§

impl Pretty for Var

Source§

impl Pretty for Binder<FnOutput>

Source§

impl Pretty for CanonicalConstrTy

Source§

impl Pretty for AliasReft

Source§

impl Pretty for Expr

Source§

impl Pretty for KVar

Source§

impl Pretty for Lambda

Source§

impl Pretty for Path

Source§

impl Pretty for IdxFmt

Source§

impl Pretty for Const

Source§

impl Pretty for DebruijnIndex

Source§

impl Pretty for ExistentialProjection

Source§

impl Pretty for ExistentialTraitRef

Source§

impl Pretty for FnOutput

Source§

impl Pretty for FnSig

Source§

impl Pretty for FuncSort

Source§

impl Pretty for PolyFuncSort

Source§

impl Pretty for SubsetTy

Source§

impl Pretty for Ty

Source§

impl Pretty for VariantSig

Source§

impl Pretty for List<Ty>

Source§

impl Pretty for PolyFnSig

Source§

impl<T> Pretty for Binder<T>
where T: Pretty,

Source§

impl<T> Pretty for Parens<'_, T>
where T: Pretty,

Source§

impl<T, I> Pretty for Join<'_, I>
where T: Pretty, I: Iterator<Item = T>,

Source§

impl<T: Pretty> Pretty for FieldBind<T>