pub trait PrettyDebugWithSource: Sized {
// Required method
fn pretty_debug(&self, source: &str) -> DebugDocBuilder;
// Provided methods
fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str,
) -> DebugDocBuilder { ... }
fn debug(&self, source: impl Into<Text>) -> String
where Self: Clone { ... }
fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self> { ... }
}
Required Methods§
fn pretty_debug(&self, source: &str) -> DebugDocBuilder
Provided Methods§
fn refined_pretty_debug( &self, _refine: PrettyDebugRefineKind, source: &str, ) -> DebugDocBuilder
fn debug(&self, source: impl Into<Text>) -> Stringwhere
Self: Clone,
fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.