Module somedoc::model [−][src]
Expand description
The document model here comprises a document type with nested blocks comprised of blocks and inline content.
The model contains the following structure.
- A Document which contains a list of
BlockContent
:- Some block have no content of their own, such as
BlockContent::ThematicBreak
. - Some block content is a basic type, such as
BlockContent::Comment
which contains aString
. - Some block content contains other block content, such as
BlockContent::Quote
. - Most blocks contain a list of
InlineContent
.- Some inline have no content of it’s own, such as
InlineContent::LineBreak
. - Some inline content contains a basic type, such as
InlineContent::Character
which contains achar
. - Some inline content contains other inline content, such as
InlineContent::Span
. - Most inline types contain a single structured type.
- Some inline have no content of it’s own, such as
- Some block have no content of their own, such as
- A Document may also have associated metadata which may, or may not, be interpreted by a writer.
Re-exports
pub use document::Document; |
Modules
block | This module is the root of a set of types that represent block content; that is, content that stands on it’s own such as a complete paragraph. |
document | This module provides the root |
inline | This module is the root of a set of types that represent inline content; that is, content that
does not stand on it’s own. In general the |
visitor | This module provides a set of traits for implementing model visitors as well as the function
|
Traits
HasInnerContent | This trait should be implemented by any type, whether block or inline, that includes.
|
HasStyles | This trait should be implemented by any type, whether block or inline, that can be styled. The
type parameter |
Style | A marker trait denoting that a type, most likely an enum, should be treated as a syle by the
type |