pub enum ViewMode {
Plain,
Annotated,
Outline {
max_level: u8,
},
Stats,
}Expand description
Selects how a DocumentContent is rendered into a string.
Variants§
Plain
Bare text: paragraphs joined by newlines, tables by commas.
Annotated
Annotated with structural markers (e.g. [段落 3], [表格 1: 2行x3列]).
Outline
Headings only, Markdown-style.
Stats
Aggregate statistics: paragraph / table / image / word counts.
Trait Implementations§
impl Eq for ViewMode
impl StructuralPartialEq for ViewMode
Auto Trait Implementations§
impl Freeze for ViewMode
impl RefUnwindSafe for ViewMode
impl Send for ViewMode
impl Sync for ViewMode
impl Unpin for ViewMode
impl UnsafeUnpin for ViewMode
impl UnwindSafe for ViewMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.