freemarker 0.1.1

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

use crate::error::TemplateError;

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