pub trait RenderExt<K>: Render<K> {
// Provided methods
fn shown(&self) -> Shown<'_, Self, K> { ... }
fn escaped(&self) -> Escaped<'_, Self, K> { ... }
}Expand description
Turns a value into something write! can take, escaped or not.
Generated code calls these as methods — value.escaped() rather than escaped(value) — because
method lookup steps through references for us. A loop hands its body an &Item while a field is
a plain value, and both have to reach the same Render impl.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".