pub struct Template {
pub name: String,
pub root: Vec<Element>,
pub macros: HashMap<String, MacroDef>,
pub configuration: Rc<Configuration>,
pub encoding: Option<String>,
pub ns_prefixes: HashMap<String, String>,
/* private fields */
}Expand description
解析产物(对应 freemarker.template.Template)
Fields§
§name: String§root: Vec<Element>§macros: HashMap<String, MacroDef>§configuration: Rc<Configuration>§encoding: Option<String>§ns_prefixes: HashMap<String, String><#ftl ns_prefixes=...> 命名空间前缀映射(prefix → URI;XML 节点查询用)
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Template
impl !Send for Template
impl !Sync for Template
impl !UnwindSafe for Template
impl Freeze for Template
impl Unpin for Template
impl UnsafeUnpin for Template
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more