freemarker 0.1.1

Apache FreeMarker 语义兼容的 Rust 模板引擎(freemarker-core 迁移)
Documentation
1
2
3
4
5
6
7
8
9
10
//! 布尔类型异常 —— 对应 Java `freemarker.core.NonBooleanException`
//! (UnexpectedTypeException 子类;expected 描述 = "boolean")

use crate::error::TemplateError;

/// Java `NonBooleanException(String description)` 的 Rust 入口
#[allow(dead_code)]
pub(crate) fn new(actual: impl Into<String>) -> TemplateError {
    TemplateError::type_mismatch("boolean", actual)
}