[−][src]Struct rustc_mir::interpret::intrinsics::type_name::AbsolutePathPrinter
Fields
tcx: TyCtxt<'tcx>path: StringTrait Implementations
impl<'tcx> PrettyPrinter<'tcx> for AbsolutePathPrinter<'tcx>[src]
pub fn region_should_not_be_omitted(&self, _region: Region<'_>) -> bool[src]
pub fn comma_sep<T>(
self,
elems: impl Iterator<Item = T>
) -> Result<Self, Self::Error> where
T: Print<'tcx, Self, Output = Self, Error = Self::Error>, [src]
self,
elems: impl Iterator<Item = T>
) -> Result<Self, Self::Error> where
T: Print<'tcx, Self, Output = Self, Error = Self::Error>,
pub fn generic_delimiters(
self,
f: impl FnOnce(Self) -> Result<Self, Self::Error>
) -> Result<Self, Self::Error>[src]
self,
f: impl FnOnce(Self) -> Result<Self, Self::Error>
) -> Result<Self, Self::Error>
pub fn print_value_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>[src]
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
pub fn in_binder<T>(self, value: &Binder<T>) -> Result<Self, Self::Error> where
T: Print<'tcx, Self, Output = Self, Error = Self::Error> + TypeFoldable<'tcx>, [src]
T: Print<'tcx, Self, Output = Self, Error = Self::Error> + TypeFoldable<'tcx>,
pub fn typed_value(
self,
f: impl FnOnce(Self) -> Result<Self, Self::Error>,
t: impl FnOnce(Self) -> Result<Self, Self::Error>,
conversion: &str
) -> Result<Self::Const, Self::Error>[src]
self,
f: impl FnOnce(Self) -> Result<Self, Self::Error>,
t: impl FnOnce(Self) -> Result<Self, Self::Error>,
conversion: &str
) -> Result<Self::Const, Self::Error>
pub fn try_print_visible_def_path(
self,
def_id: DefId
) -> Result<(Self, bool), Self::Error>[src]
self,
def_id: DefId
) -> Result<(Self, bool), Self::Error>
pub fn try_print_trimmed_def_path(
self,
def_id: DefId
) -> Result<(Self::Path, bool), Self::Error>[src]
self,
def_id: DefId
) -> Result<(Self::Path, bool), Self::Error>
pub fn try_print_visible_def_path_recur(
self,
def_id: DefId,
callers: &mut Vec<DefId>
) -> Result<(Self, bool), Self::Error>[src]
self,
def_id: DefId,
callers: &mut Vec<DefId>
) -> Result<(Self, bool), Self::Error>
pub fn pretty_path_qualified(
self,
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>[src]
self,
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
pub fn pretty_path_append_impl(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>[src]
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
pub fn pretty_print_type(
self,
ty: &'tcx TyS<'tcx>
) -> Result<Self::Type, Self::Error>[src]
self,
ty: &'tcx TyS<'tcx>
) -> Result<Self::Type, Self::Error>
pub fn pretty_print_bound_var(
&mut self,
debruijn: DebruijnIndex,
var: BoundVar
) -> Result<(), Self::Error>[src]
&mut self,
debruijn: DebruijnIndex,
var: BoundVar
) -> Result<(), Self::Error>
pub fn infer_ty_name(&self, TyVid) -> Option<String>[src]
pub fn pretty_print_dyn_existential(
self,
predicates: &'tcx List<ExistentialPredicate<'tcx>>
) -> Result<Self::DynExistential, Self::Error>[src]
self,
predicates: &'tcx List<ExistentialPredicate<'tcx>>
) -> Result<Self::DynExistential, Self::Error>
pub fn pretty_fn_sig(
self,
inputs: &[&'tcx TyS<'tcx>],
c_variadic: bool,
output: &'tcx TyS<'tcx>
) -> Result<Self, Self::Error>[src]
self,
inputs: &[&'tcx TyS<'tcx>],
c_variadic: bool,
output: &'tcx TyS<'tcx>
) -> Result<Self, Self::Error>
pub fn pretty_print_const(
self,
ct: &'tcx Const<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>[src]
self,
ct: &'tcx Const<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>
pub fn pretty_print_const_scalar(
self,
scalar: Scalar<()>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>[src]
self,
scalar: Scalar<()>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>
pub fn pretty_print_const_pointer(
self,
Pointer<()>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>[src]
self,
Pointer<()>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>
pub fn pretty_print_byte_str(
self,
byte_str: &'tcx [u8]
) -> Result<Self::Const, Self::Error>[src]
self,
byte_str: &'tcx [u8]
) -> Result<Self::Const, Self::Error>
pub fn pretty_print_const_value(
self,
ct: ConstValue<'tcx>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>[src]
self,
ct: ConstValue<'tcx>,
ty: &'tcx TyS<'tcx>,
print_ty: bool
) -> Result<Self::Const, Self::Error>
impl<'tcx> Printer<'tcx> for AbsolutePathPrinter<'tcx>[src]
type Error = Error
type Path = Self
type Region = Self
type Type = Self
type DynExistential = Self
type Const = Self
pub fn tcx(&self) -> TyCtxt<'tcx>[src]
pub fn print_region(
self,
_region: Region<'_>
) -> Result<Self::Region, Self::Error>[src]
self,
_region: Region<'_>
) -> Result<Self::Region, Self::Error>
pub fn print_type(self, ty: Ty<'tcx>) -> Result<Self::Type, Self::Error>[src]
pub fn print_const(
self,
ct: &'tcx Const<'tcx>
) -> Result<Self::Const, Self::Error>[src]
self,
ct: &'tcx Const<'tcx>
) -> Result<Self::Const, Self::Error>
pub fn print_dyn_existential(
self,
predicates: &'tcx List<ExistentialPredicate<'tcx>>
) -> Result<Self::DynExistential, Self::Error>[src]
self,
predicates: &'tcx List<ExistentialPredicate<'tcx>>
) -> Result<Self::DynExistential, Self::Error>
pub fn path_crate(self, cnum: CrateNum) -> Result<Self::Path, Self::Error>[src]
pub fn path_qualified(
self,
self_ty: Ty<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>[src]
self,
self_ty: Ty<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
pub 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>[src]
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>
pub fn path_append(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
disambiguated_data: &DisambiguatedDefPathData
) -> Result<Self::Path, Self::Error>[src]
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
disambiguated_data: &DisambiguatedDefPathData
) -> Result<Self::Path, Self::Error>
pub fn path_generic_args(
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
args: &[GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>[src]
self,
print_prefix: impl FnOnce(Self) -> Result<Self::Path, Self::Error>,
args: &[GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
pub fn print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>[src]
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
pub fn print_impl_path(
self,
impl_def_id: DefId,
substs: &'tcx [GenericArg<'tcx>],
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>[src]
self,
impl_def_id: DefId,
substs: &'tcx [GenericArg<'tcx>],
self_ty: &'tcx TyS<'tcx>,
trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
pub fn default_print_def_path(
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>[src]
self,
def_id: DefId,
substs: &'tcx [GenericArg<'tcx>]
) -> Result<Self::Path, Self::Error>
pub fn generic_args_to_print(
&self,
generics: &'tcx Generics,
substs: &'tcx [GenericArg<'tcx>]
) -> &'tcx [GenericArg<'tcx>][src]
&self,
generics: &'tcx Generics,
substs: &'tcx [GenericArg<'tcx>]
) -> &'tcx [GenericArg<'tcx>]
pub fn default_print_impl_path(
self,
impl_def_id: DefId,
_substs: &'tcx [GenericArg<'tcx>],
self_ty: &'tcx TyS<'tcx>,
impl_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>[src]
self,
impl_def_id: DefId,
_substs: &'tcx [GenericArg<'tcx>],
self_ty: &'tcx TyS<'tcx>,
impl_trait_ref: Option<TraitRef<'tcx>>
) -> Result<Self::Path, Self::Error>
impl<'_> Write for AbsolutePathPrinter<'_>[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.