pub struct LoadedDocument {
pub document: Document,
pub base: String,
}Expand description
已装载的版式文档及其在包内的所在目录。
base 为 Document.xml 所在目录(如 Doc_0),用于解析页对象、资源等
节点中的相对 StLoc。
Fields§
§document: Document文档根节点数据模型。
base: String文档所在目录(不含末尾 /)。
Implementations§
Source§impl LoadedDocument
impl LoadedDocument
Sourcepub fn template_pages(&self) -> &[CtTemplatePage]
pub fn template_pages(&self) -> &[CtTemplatePage]
文档公共数据中定义的模板页。
Sourcepub fn public_res(&self) -> &[StLoc]
pub fn public_res(&self) -> &[StLoc]
公共资源文件路径列表。
Sourcepub fn document_res(&self) -> &[StLoc]
pub fn document_res(&self) -> &[StLoc]
文档资源文件路径列表。
Auto Trait Implementations§
impl Freeze for LoadedDocument
impl RefUnwindSafe for LoadedDocument
impl Send for LoadedDocument
impl Sync for LoadedDocument
impl Unpin for LoadedDocument
impl UnsafeUnpin for LoadedDocument
impl UnwindSafe for LoadedDocument
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