Struct rustc_typeck::ty::print::TraitRefPrintOnlyTraitPath [−][src]
pub struct TraitRefPrintOnlyTraitPath<'tcx>(TraitRef<'tcx>);Expand description
Wrapper type for ty::TraitRef which opts-in to pretty printing only
the trait path. That is, it will print Trait<U> instead of
<T as Trait<U>>.
Tuple Fields
0: TraitRef<'tcx>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TraitRefPrintOnlyTraitPath<'tcx>
impl<'tcx> !Send for TraitRefPrintOnlyTraitPath<'tcx>
impl<'tcx> !Sync for TraitRefPrintOnlyTraitPath<'tcx>
impl<'tcx> Unpin for TraitRefPrintOnlyTraitPath<'tcx>
impl<'tcx> !UnwindSafe for TraitRefPrintOnlyTraitPath<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes