Enum somedoc::model::block::BlockContent [−][src]
The set of supported block content types.
Variants
Comment(String)
A comment; this may be written into markup but not included in a rendered version.
FrontMatter(FrontMatter)
Generated lists of content.
Heading(Heading)
A section heading.
ImageBlock(ImageBlock)
A block containing an image only.
MathBlock(MathBlock)
Block formatted math formula.
List(List)
An ordered, or unordered, and possibly nested list.
DefinitionList(DefinitionList)
A definition list.
Formatted(Formatted)
Pre-formatted output[
CodeBlock(CodeBlock)
A code block with the intent that this will be syntax highlighted.
Paragraph(Paragraph)
A paragraph of text or other inline content.
Quote(Quote)
A block quote, these may be nested.
Table(Table)
A table with columns and rows.
A visual break between themes.
Trait Implementations
impl Clone for BlockContent
[src]
fn clone(&self) -> BlockContent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BlockContent
[src]
impl<'de> Deserialize<'de> for BlockContent
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<BlockContent> for Quote
[src]
fn from(v: BlockContent) -> Self
[src]
impl HasInnerContent<BlockContent> for Document
[src]
fn inner(&self) -> &Vec<BlockContent>
[src]
fn into_inner(self) -> Vec<BlockContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<BlockContent>
[src]
fn add_content(&mut self, content: BlockContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl HasInnerContent<BlockContent> for Quote
[src]
fn inner(&self) -> &Vec<BlockContent>
[src]
fn into_inner(self) -> Vec<BlockContent>
[src]
fn inner_mut(&mut self) -> &mut Vec<BlockContent>
[src]
fn add_content(&mut self, content: BlockContent) -> Result<()>
[src]
fn has_inner(&self) -> bool
[src]
impl Into<BlockContent> for Image
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for Formatted
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for Table
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for CodeBlock
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for Heading
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for List
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for DefinitionList
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for ImageBlock
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for MathBlock
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for Paragraph
[src]
fn into(self) -> BlockContent
[src]
impl Into<BlockContent> for Quote
[src]
fn into(self) -> BlockContent
[src]
impl Into<Document> for BlockContent
[src]
impl Serialize for BlockContent
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlockContent
[src]
impl Send for BlockContent
[src]
impl Sync for BlockContent
[src]
impl Unpin for BlockContent
[src]
impl UnwindSafe for BlockContent
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,