pub enum ContentModel {
Compound,
Simple,
Verbatim,
Raw,
Empty,
Table,
}
Expand description
The content model of a block determines what kind of content the block can have (if any) and how that content is processed.
Variants§
Compound
A block that may only contain other blocks (e.g., a section)
Simple
A block that’s treated as contiguous lines of paragraph text (and subject to normal substitutions) (e.g., a paragraph block)
Verbatim
A block that holds verbatim text (displayed “as is”) (and subject to verbatim substitutions) (e.g., a listing block)
Raw
A block that holds unprocessed content passed directly through to the output with no substitutions applied (e.g., a passthrough block)
Empty
A block that has no content (e.g., an image block)
Table
A special content model reserved for tables that enforces a fixed structure
Trait Implementations§
Source§impl Clone for ContentModel
impl Clone for ContentModel
Source§fn clone(&self) -> ContentModel
fn clone(&self) -> ContentModel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContentModel
impl Debug for ContentModel
Source§impl PartialEq for ContentModel
impl PartialEq for ContentModel
impl Copy for ContentModel
impl Eq for ContentModel
impl StructuralPartialEq for ContentModel
Auto Trait Implementations§
impl Freeze for ContentModel
impl RefUnwindSafe for ContentModel
impl Send for ContentModel
impl Sync for ContentModel
impl Unpin for ContentModel
impl UnwindSafe for ContentModel
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