Trait rustc::util::ppaux::Print
[−]
[src]
pub trait Print { fn print<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result; fn print_to_string(&self, cx: &mut PrintContext) -> String { ... } fn print_display<F: Write>(
&self,
f: &mut F,
cx: &mut PrintContext
) -> Result { ... } fn print_display_to_string(&self, cx: &mut PrintContext) -> String { ... } fn print_debug<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result { ... } fn print_debug_to_string(&self, cx: &mut PrintContext) -> String { ... } }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Required Methods
fn print<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Provided Methods
fn print_to_string(&self, cx: &mut PrintContext) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_display<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_display_to_string(&self, cx: &mut PrintContext) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_debug<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_debug_to_string(&self, cx: &mut PrintContext) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementations on Foreign Types
impl<'a, T: Print> Print for &'a T
[src]
fn print<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_to_string(&self, cx: &mut PrintContext) -> String
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_display<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_display_to_string(&self, cx: &mut PrintContext) -> String
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_debug<F: Write>(&self, f: &mut F, cx: &mut PrintContext) -> Result
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn print_debug_to_string(&self, cx: &mut PrintContext) -> String
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementors
impl<'tcx> Print for &'tcx Slice<ExistentialPredicate<'tcx>>
impl<'tcx> Print for TypeAndMut<'tcx>
impl<'tcx> Print for ExistentialTraitRef<'tcx>
impl<'tcx> Print for Adjustment<'tcx>
impl Print for BoundRegion
impl Print for RegionKind
impl Print for FreeRegion
impl Print for Variance
impl<'tcx> Print for GenericPredicates<'tcx>
impl<'tcx> Print for InstantiatedPredicates<'tcx>
impl<'tcx> Print for FnSig<'tcx>
impl Print for InferTy
impl<'tcx> Print for Binder<&'tcx Slice<ExistentialPredicate<'tcx>>>
impl<'tcx> Print for Binder<TraitRef<'tcx>>
impl<'tcx> Print for Binder<FnSig<'tcx>>
impl<'tcx> Print for Binder<TraitPredicate<'tcx>>
impl<'tcx> Print for Binder<EquatePredicate<'tcx>>
impl<'tcx> Print for Binder<SubtypePredicate<'tcx>>
impl<'tcx> Print for Binder<ProjectionPredicate<'tcx>>
impl<'tcx> Print for Binder<OutlivesPredicate<Ty<'tcx>, Region<'tcx>>>
impl<'tcx> Print for Binder<OutlivesPredicate<Region<'tcx>, Region<'tcx>>>
impl<'tcx> Print for TraitRef<'tcx>
impl<'tcx> Print for GeneratorInterior<'tcx>
impl<'tcx> Print for TypeVariants<'tcx>
impl<'tcx> Print for TyS<'tcx>
impl Print for ParamTy
impl<'tcx, T: Print + Debug, U: Print + Debug> Print for OutlivesPredicate<T, U>
impl<'tcx> Print for EquatePredicate<'tcx>
impl<'tcx> Print for SubtypePredicate<'tcx>
impl<'tcx> Print for TraitPredicate<'tcx>
impl<'tcx> Print for ProjectionPredicate<'tcx>
impl<'tcx> Print for ProjectionTy<'tcx>
impl Print for ClosureKind
impl<'tcx> Print for Predicate<'tcx>