Trait chalk_solve::display::render_trait::RenderAsRust
source · 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§
fn fmt(&self, s: &InternalWriterState<'_, I>, f: &mut Formatter<'_>) -> Result
Provided Methods§
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>)
impl<'a, I: Interner> RenderAsRust<I> for (&'a CoroutineDatum<I>, &'a CoroutineWitnessDatum<I>)
source§impl<I: Interner> RenderAsRust<I> for AliasTy<I>
impl<I: Interner> RenderAsRust<I> for AliasTy<I>
source§impl<I: Interner> RenderAsRust<I> for ConstValue<I>
impl<I: Interner> RenderAsRust<I> for ConstValue<I>
source§impl<I: Interner> RenderAsRust<I> for GenericArgData<I>
impl<I: Interner> RenderAsRust<I> for GenericArgData<I>
source§impl<I: Interner> RenderAsRust<I> for LifetimeData<I>
impl<I: Interner> RenderAsRust<I> for LifetimeData<I>
source§impl<I: Interner> RenderAsRust<I> for Scalar
impl<I: Interner> RenderAsRust<I> for Scalar
source§impl<I: Interner> RenderAsRust<I> for TyKind<I>
impl<I: Interner> RenderAsRust<I> for TyKind<I>
source§impl<I: Interner> RenderAsRust<I> for WhereClause<I>
impl<I: Interner> RenderAsRust<I> for WhereClause<I>
source§impl<I: Interner> RenderAsRust<I> for AdtId<I>
impl<I: Interner> RenderAsRust<I> for AdtId<I>
source§impl<I: Interner> RenderAsRust<I> for AliasEq<I>
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§impl<I: Interner> RenderAsRust<I> for AssocTypeId<I>
impl<I: Interner> RenderAsRust<I> for AssocTypeId<I>
source§impl<I: Interner> RenderAsRust<I> for Const<I>
impl<I: Interner> RenderAsRust<I> for Const<I>
source§impl<I: Interner> RenderAsRust<I> for ConstData<I>
impl<I: Interner> RenderAsRust<I> for ConstData<I>
source§impl<I: Interner> RenderAsRust<I> for FnPointer<I>
impl<I: Interner> RenderAsRust<I> for FnPointer<I>
source§impl<I: Interner> RenderAsRust<I> for GenericArg<I>
impl<I: Interner> RenderAsRust<I> for GenericArg<I>
source§impl<I: Interner> RenderAsRust<I> for Lifetime<I>
impl<I: Interner> RenderAsRust<I> for Lifetime<I>
source§impl<I: Interner> RenderAsRust<I> for LifetimeOutlives<I>
impl<I: Interner> RenderAsRust<I> for LifetimeOutlives<I>
source§impl<I: Interner> RenderAsRust<I> for OpaqueTy<I>
impl<I: Interner> RenderAsRust<I> for OpaqueTy<I>
source§impl<I: Interner> RenderAsRust<I> for OpaqueTyId<I>
impl<I: Interner> RenderAsRust<I> for OpaqueTyId<I>
source§impl<I: Interner> RenderAsRust<I> for ProjectionTy<I>
impl<I: Interner> RenderAsRust<I> for ProjectionTy<I>
source§impl<I: Interner> RenderAsRust<I> for TraitId<I>
impl<I: Interner> RenderAsRust<I> for TraitId<I>
source§impl<I: Interner> RenderAsRust<I> for TraitRef<I>
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.