[−][src]Struct rustc_middle::ty::print::obsolete::DefPathBasedNames

pub struct DefPathBasedNames<'tcx> {
    tcx: TyCtxt<'tcx>,
    omit_disambiguators: bool,
    omit_local_crate_name: bool,
}

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: bool

Implementations

impl<'tcx> DefPathBasedNames<'tcx>[src]

pub fn new(
    tcx: TyCtxt<'tcx>,
    omit_disambiguators: bool,
    omit_local_crate_name: bool
) -> Self
[src]

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]

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]

pub fn push_instance_as_string(
    &self,
    instance: Instance<'tcx>,
    output: &mut String,
    debug: bool
)
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]