Trait somedoc::model::block::HasBlockContent [−][src]
This trait is implemented by any type that contains, as content, a list of block content instances. Implementers of this trait may be themselves either block content objects.
Note that the add_
methods all return &mut Self
and so calls to these may be chained.
Provided methods
fn from(inner: BlockContent) -> Self
[src]
Create a new block content container from the provided content item.
fn comment(inner: String) -> Self
[src]
Create a new block content container from the provided String
content item.
fn front_matter(matter: FrontMatter) -> Self
[src]
Create a new block content container from the provided FrontMatter
content item.
fn heading(inner: Heading) -> Self
[src]
Create a new block content container from the provided Heading
content item.
fn image(inner: ImageBlock) -> Self
[src]
Create a new block content container from the provided ImageBlock
content item.
fn math(inner: MathBlock) -> Self
[src]
Create a new block content container from the provided MathBlock
content item.
fn list(inner: List) -> Self
[src]
Create a new block content container from the provided List
content item.
fn definition_list(inner: DefinitionList) -> Self
[src]
Create a new block content container from the provided DefinitionList
content item.
fn formatted(inner: Formatted) -> Self
[src]
Create a new block content container from the provided Formatted
content item.
fn code_block(inner: CodeBlock) -> Self
[src]
Create a new block content container from the provided CodeBlock
content item.
fn paragraph(inner: Paragraph) -> Self
[src]
Create a new block content container from the provided Paragraph
content item.
fn block_quote(inner: Quote) -> Self
[src]
Create a new block content container from the provided Quote
content item.
fn table(inner: Table) -> Self
[src]
Create a new block content container from the provided Table
content item.
fn thematic_break() -> Self
[src]
Create a new block content container with a thematic break.
fn add_comment_str(&mut self, inner: &str) -> &mut Self
[src]
Add the provided Comment
to this container's inner content.
fn add_front_matter(&mut self, matter: FrontMatter) -> &mut Self
[src]
Add the provided FrontMatter
to this container's inner content.
fn add_heading(&mut self, inner: Heading) -> &mut Self
[src]
Add the provided Heading
to this container's inner content.
fn add_image(&mut self, inner: ImageBlock) -> &mut Self
[src]
Add the provided ImageBlock
to this container's inner content.
fn add_math(&mut self, inner: MathBlock) -> &mut Self
[src]
Add the provided MathBlock
to this container's inner content.
fn add_list(&mut self, inner: List) -> &mut Self
[src]
Add the provided List
to this container's inner content.
fn add_definition_list(&mut self, inner: DefinitionList) -> &mut Self
[src]
Add the provided DefinitionList
to this container's inner content.
fn add_formatted(&mut self, inner: Formatted) -> &mut Self
[src]
Add the provided Formatted
to this container's inner content.
fn add_code_block(&mut self, inner: CodeBlock) -> &mut Self
[src]
Add the provided CodeBlock
to this container's inner content.
fn add_paragraph(&mut self, inner: Paragraph) -> &mut Self
[src]
Add the provided Paragraph
to this container's inner content.
fn add_block_quote(&mut self, inner: Quote) -> &mut Self
[src]
Add the provided Quote
to this container's inner content.
fn add_table(&mut self, inner: Table) -> &mut Self
[src]
Add the provided Table
to this container's inner content.
fn add_thematic_break(&mut self) -> &mut Self
[src]
Add a ThematicBreak
to this container's inner content.