Trait ViewContext

Source
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§

Source

fn with_content(self, content: String) -> Value
where 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.

Implementors§