pub(super) trait RenderAsRust<I: Interner> {
    // Required method
    fn fmt(
        &self,
        s: &InternalWriterState<'_, I>,
        f: &mut Formatter<'_>
    ) -> Result;

    // Provided method
    fn display<'a>(
        &'a self,
        s: &'a InternalWriterState<'a, I>
    ) -> DisplayRenderAsRust<'a, I, Self>
       where Self: Sized { ... }
}

Required Methods§

source

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

Provided Methods§

source

fn display<'a>( &'a self, s: &'a InternalWriterState<'a, I> ) -> DisplayRenderAsRust<'a, I, Self>
where Self: Sized,

Implementations on Foreign Types§

source§

impl<'a, I: Interner> RenderAsRust<I> for (&'a CoroutineDatum<I>, &'a CoroutineWitnessDatum<I>)

source§

fn fmt(&self, _s: &InternalWriterState<'_, I>, _f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for AliasTy<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for ConstValue<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for GenericArgData<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for LifetimeData<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for Scalar

source§

fn fmt(&self, _s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for TyKind<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for WhereClause<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for AdtId<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for AliasEq<I>

This renders AliasEq as a clause in a where clause, as opposed to its usage in other places.

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for AssocTypeId<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for Const<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for ConstData<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for FnPointer<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for GenericArg<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for Lifetime<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for LifetimeOutlives<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for OpaqueTy<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for OpaqueTyId<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for ProjectionTy<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for TraitId<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for TraitRef<I>

This renders TraitRef as a clause in a where clause, as opposed to its usage in other places.

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for Ty<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for TypeOutlives<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for Vec<QuantifiedWhereClause<I>>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

source§

impl<I: Interner> RenderAsRust<I> for QuantifiedWhereClause<I>

source§

fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result

Implementors§