pub trait Interpolatable {
// Required method
fn as_part(&self) -> TextPart<'_>;
}Expand description
Anything that can be interpolated into a text_interpolated.
So a caller writes the value and not the variant — and so crate::ltext!
can accept whatever the format string was given.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".