Struct rustc_symbol_mangling::ty::print::TraitRefPrintOnlyTraitName [−][src]
pub struct TraitRefPrintOnlyTraitName<'tcx>(TraitRef<'tcx>);Expand description
Wrapper type for ty::TraitRef which opts-in to pretty printing only
the trait name. That is, it will print Trait instead of
<T as Trait<U>>.
Tuple Fields
0: TraitRef<'tcx>Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for TraitRefPrintOnlyTraitName<'tcx>
impl<'tcx> !Send for TraitRefPrintOnlyTraitName<'tcx>
impl<'tcx> !Sync for TraitRefPrintOnlyTraitName<'tcx>
impl<'tcx> Unpin for TraitRefPrintOnlyTraitName<'tcx>
impl<'tcx> !UnwindSafe for TraitRefPrintOnlyTraitName<'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