[−][src]Struct rustc_middle::ty::print::obsolete::DefPathBasedNames
Same as unique_type_name() but with the result pushed onto the given
output parameter.
Fields
tcx: TyCtxt<'tcx>omit_disambiguators: boolomit_local_crate_name: boolImplementations
impl<'tcx> DefPathBasedNames<'tcx>[src]
pub fn new(
tcx: TyCtxt<'tcx>,
omit_disambiguators: bool,
omit_local_crate_name: bool
) -> Self[src]
tcx: TyCtxt<'tcx>,
omit_disambiguators: bool,
omit_local_crate_name: bool
) -> Self
pub fn push_type_name(&self, t: Ty<'tcx>, output: &mut String, debug: bool)[src]
pub fn push_const_name(
&self,
ct: &Const<'tcx>,
output: &mut String,
debug: bool
)[src]
&self,
ct: &Const<'tcx>,
output: &mut String,
debug: bool
)
pub fn push_def_path(&self, def_id: DefId, output: &mut String)[src]
fn push_generic_params<I>(
&self,
substs: SubstsRef<'tcx>,
projections: I,
output: &mut String,
debug: bool
) where
I: Iterator<Item = PolyExistentialProjection<'tcx>>, [src]
&self,
substs: SubstsRef<'tcx>,
projections: I,
output: &mut String,
debug: bool
) where
I: Iterator<Item = PolyExistentialProjection<'tcx>>,
pub fn push_instance_as_string(
&self,
instance: Instance<'tcx>,
output: &mut String,
debug: bool
)[src]
&self,
instance: Instance<'tcx>,
output: &mut String,
debug: bool
)
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for DefPathBasedNames<'tcx>
impl<'tcx> !Send for DefPathBasedNames<'tcx>
impl<'tcx> !Sync for DefPathBasedNames<'tcx>
impl<'tcx> Unpin for DefPathBasedNames<'tcx>
impl<'tcx> !UnwindSafe for DefPathBasedNames<'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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
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.
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.