[−][src]Struct rustc_middle::ty::print::pretty::FmtPrinter

pub struct FmtPrinter<'a, 'tcx, F>(Box<FmtPrinterData<'a, 'tcx, F>>);

Implementations

impl<F, 'a, 'tcx> FmtPrinter<'a, 'tcx, F>[src]

pub fn new(tcx: TyCtxt<'tcx>, fmt: F, ns: Namespace) -> Self[src]

impl<F: Write, '_, '_> FmtPrinter<'_, '_, F>[src]

pub fn pretty_print_region(self, region: Region<'_>) -> Result<Self, Error>[src]

impl<F: Write, '_, 'tcx> FmtPrinter<'_, 'tcx, F>[src]

pub fn name_all_regions<T>(
    self,
    value: &Binder<T>
) -> Result<(Self, (T, BTreeMap<BoundRegion, Region<'tcx>>)), Error> where
    T: Print<'tcx, Self, Output = Self, Error = Error> + TypeFoldable<'tcx>, 
[src]

pub fn pretty_in_binder<T>(self, value: &Binder<T>) -> Result<Self, Error> where
    T: Print<'tcx, Self, Output = Self, Error = Error> + TypeFoldable<'tcx>, 
[src]

pub(in ty::print::pretty) fn prepare_late_bound_region_info<T>(
    &mut self,
    value: &Binder<T>
) where
    T: TypeFoldable<'tcx>, 
[src]

Trait Implementations

impl<F, 'a, 'tcx> Deref for FmtPrinter<'a, 'tcx, F>[src]

type Target = FmtPrinterData<'a, 'tcx, F>

The resulting type after dereferencing.

impl<F, '_, '_> DerefMut for FmtPrinter<'_, '_, F>[src]

impl<F: Write, 'tcx, '_> PrettyPrinter<'tcx> for FmtPrinter<'_, 'tcx, F>[src]

impl<F: Write, 'tcx, '_> Printer<'tcx> for FmtPrinter<'_, 'tcx, F>[src]

type Error = Error

type Path = Self

type Region = Self

type Type = Self

type DynExistential = Self

type Const = Self

impl<F: Write, '_, '_> Write for FmtPrinter<'_, '_, F>[src]

Auto Trait Implementations

impl<'a, 'tcx, F> !RefUnwindSafe for FmtPrinter<'a, 'tcx, F>

impl<'a, 'tcx, F> !Send for FmtPrinter<'a, 'tcx, F>

impl<'a, 'tcx, F> !Sync for FmtPrinter<'a, 'tcx, F>

impl<'a, 'tcx, F> Unpin for FmtPrinter<'a, 'tcx, F>

impl<'a, 'tcx, F> !UnwindSafe for FmtPrinter<'a, 'tcx, F>

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]