pub trait FmtWithCtx<C> {
// Provided methods
fn fmt_with_ctx(&self, ctx: &C) -> String { ... }
fn fmt_with_ctx_and_indent(&self, _tab: &str, _ctx: &C) -> String { ... }
fn with_ctx<'a>(&'a self, ctx: &'a C) -> impl Display + 'a { ... }
}
Expand description
Format the AST type as a string.
Provided Methods§
fn fmt_with_ctx(&self, ctx: &C) -> String
fn fmt_with_ctx_and_indent(&self, _tab: &str, _ctx: &C) -> String
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.