pub trait Format {
const PLACEHOLDERS: (&'static str, &'static str) = _;
// Provided method
fn format(&self, template: impl Into<String>) -> String
where Self: Serialize { ... }
}
Expand description
A simple formatter with customizable placeholders
Provided Associated Constants§
Sourceconst PLACEHOLDERS: (&'static str, &'static str) = _
const PLACEHOLDERS: (&'static str, &'static str) = _
Left and right placeholders for variables
Provided Methods§
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.