pub struct EpubChapter {
pub title: String,
pub blocks: Vec<Block>,
pub text: String,
}Expand description
一章(= 一个 spine 文档,或文档内按标题切出的一节)。
Fields§
§title: String§blocks: Vec<Block>§text: Stringblocks 的非空 content 以空行连接(与 Python 章文本口径一致)。
Trait Implementations§
Source§impl Clone for EpubChapter
impl Clone for EpubChapter
Source§impl Debug for EpubChapter
impl Debug for EpubChapter
Source§impl Default for EpubChapter
impl Default for EpubChapter
Source§impl PartialEq for EpubChapter
impl PartialEq for EpubChapter
impl StructuralPartialEq for EpubChapter
Auto Trait Implementations§
impl Freeze for EpubChapter
impl RefUnwindSafe for EpubChapter
impl Send for EpubChapter
impl Sync for EpubChapter
impl Unpin for EpubChapter
impl UnsafeUnpin for EpubChapter
impl UnwindSafe for EpubChapter
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