pub trait ViewContext: Serialize {
// Provided method
fn with_content(self, content: String) -> Value
where Self: Sized { ... }
}Expand description
Trait for types that can serve as a context for a Handlebars view.
Provided Methods§
Sourcefn with_content(self, content: String) -> Valuewhere
Self: Sized,
fn with_content(self, content: String) -> Valuewhere
Self: Sized,
Used to add or override keys for layouts.
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.