Type Alias rocket_dyn_templates::handlebars::EscapeFn

source ·
pub type EscapeFn = Arc<dyn Fn(&str) -> String + Send + Sync>;
Expand description

This type represents an escape fn, that is a function whose purpose it is to escape potentially problematic characters in a string.

An escape fn is represented as a Box to avoid unnecessary type parameters (and because traits cannot be aliased using type).

Aliased Type§

struct EscapeFn { /* private fields */ }