Struct rustc_infer::infer::error_reporting::AbsolutePathPrinter
source · struct AbsolutePathPrinter<'tcx> {
tcx: TyCtxt<'tcx>,
}Fields§
§tcx: TyCtxt<'tcx>Trait Implementations§
source§impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx>
impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx>
type Error = NonTrivialPath
type Path = Vec<String, Global>
type Region = !
type Type = !
type DynExistential = !
type Const = !
fn tcx<'a>(&'a self) -> TyCtxt<'tcx>
fn print_region(self, _region: Region<'_>) -> Result<Self::Region, Self::Error>
fn print_type(self, _ty: Ty<'tcx>) -> Result<Self::Type, Self::Error>
fn print_dyn_existential(
self,
_predicates: &'tcx List<PolyExistentialPredicate<'tcx>>
) -> Result<Self::DynExistential, Self::Error>
fn print_const(self, _ct: Const<'tcx>) -> Result<Self::Const, Self::Error>
fn path_crate(self, cnum: CrateNum) -> Result<Self::Path, Self::Error>
fn path_qualified(
self,
_self_ty: Ty<'tcx>,
_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
fn path_append_impl(
self,
_print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
_disambiguated_data: &DisambiguatedDefPathData,
_self_ty: Ty<'tcx>,
_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
fn path_append(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
disambiguated_data: &DisambiguatedDefPathData
) -> Result<Self::Path, Self::Error>
fn path_generic_args(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
_args: &[GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
fn print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
fn print_impl_path(
self,
impl_def_id: DefId,
substs: &'tcx [GenericArg<'tcx>],
self_ty: Ty<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
fn default_print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
fn default_print_impl_path(
self,
impl_def_id: DefId,
_substs: &'tcx [GenericArg<'tcx>],
self_ty: Ty<'tcx>,
impl_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for AbsolutePathPrinter<'tcx>
impl<'tcx> !Send for AbsolutePathPrinter<'tcx>
impl<'tcx> !Sync for AbsolutePathPrinter<'tcx>
impl<'tcx> Unpin for AbsolutePathPrinter<'tcx>
impl<'tcx> !UnwindSafe for AbsolutePathPrinter<'tcx>
Blanket Implementations§
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: 8 bytes